home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 January / Game.EXE_01_2002.iso / Utilities / Notepad v3.4.1 / notepad.exe / scripts.dat < prev   
Encoding:
Text File  |  1999-07-28  |  124.6 KB  |  4,301 lines

  1. ***SCRIPTS DATA. Don't Modified.***
  2. Create And Use In SimBa's aka Dimoniusis's Notepad.
  3. Script Copyrights for CofeeCup corp, Js corp, TiGER grp. 
  4.  
  5. __1
  6. Random Ad Space - N
  7.  
  8. <CENTER>
  9. <Script Language ="JavaScript">
  10. //Modified by Coffeecup Software
  11.  
  12. //produces a randomly generated graphic to use as ad or cool effect
  13. //±δ≤≈αΘφε Γ√ßΦ≡ασ≥ Ωα≡≥ΦφΩ≤ ± ±√δΩεΘ
  14.  
  15. function RandomNumber() 
  16. {
  17.   var today = new Date();
  18.   var num= Math.abs(Math.sin(today.getTime()/1000));
  19.   return num;
  20. }
  21.  
  22. function RandomGraphics() 
  23. {
  24.   var x = RandomNumber();
  25.  
  26.   if (x > .77) 
  27. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  28. }
  29.   if (x > .66) 
  30. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  31. }
  32.   if (x > .55) 
  33. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  34. }
  35.   if (x > .44) 
  36. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  37. }
  38.   if (x > .33) 
  39. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  40. }
  41.   if (x > .22) 
  42. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  43. }
  44.   if (x > .11) 
  45. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  46. }
  47.   if (x > 0)   
  48. {document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>"); return; 
  49. }
  50. }
  51.  
  52. RandomGraphics();
  53.  
  54. //End Script 
  55.  
  56. </SCRIPT>
  57. </CENTER>
  58.  
  59. __2
  60. Scrolling Banner
  61.  
  62. <!-- This is your typical scrolling banner -->
  63. <!-- ╤Ω≡εδΦφφπ ßαφφσ≡α - Γ ±≥≡εΩσ ΓΓεΣα. ╤Ω≡Φ∩≥ ≡ατ∞σ±≥Φ≥σ ∩ε±δσ ≥σπα <TITLE>-->
  64. <script language="JavaScript">
  65. // Modified by CoffeeCup Software      
  66.  
  67. var id,pause=0,position=0,revol=9;
  68.  
  69. function banner() 
  70. {
  71.   var i,k;
  72.   var msg="                                    Your Text Here                                          ";
  73.   var speed=10;
  74.   document.thisform.thisbanner.value=msg.substring(position,position+50);
  75.  
  76.   if(position++==msg.length) 
  77.   {
  78.       if (revol-- < 2) return;
  79.       position=0;
  80.   }
  81.  
  82.   id=setTimeout("banner()",1000/speed);
  83. }
  84.  
  85. </script>
  86.  
  87. </head>
  88. <body bgcolor="ffffff" onload="banner()">
  89. <CENTER><form name="thisform">
  90.  
  91. <input type="text" name="thisbanner" size="40">
  92. </FORM>
  93. </CENTER>
  94.  
  95. __3
  96. Background Change - N
  97.  
  98. <!-- Background Changer
  99. Just make sure you add your Title before this script.
  100. If you change the last line in will give you the rest
  101. of the information for your page (link color,text etc.)
  102. Play with the colors !-->
  103. <!-- ╧δαΓφε Φτ∞σφ σ≥ ÷Γσ≥ ταΣφσπε ⌠εφα. ╧ε∞σ±≥Φ≥σ ²≥ε≥ ±Ω≡Φ∩≥ 
  104.  ∩ε±δσ <Title> Γα°σπε ΣεΩ≤∞σφ≥α.┬∞σ±≥ε ∩ε±δσΣφσΘ ±≥≡εΩΦ
  105.  Γ√ ∞εµσ≥σ ≡ατ∞σ±≥Φ≥ⁿ Φφ⌠ε≡∞α÷Φ■  ε Γα°σΘ 
  106.  ±≥≡αφΦ≈Ωσ (δΦφΩΦ, ≥σΩ±≥, Φ ≥Σ)
  107.  ╧εΦπ≡αΘ≥σ ± ÷Γσ≥α∞Φ ! -->
  108.  
  109. <script>
  110. // Modified by CoffeeCup Software
  111.  
  112. function initArray() 
  113. {
  114.   this.length = initArray.arguments.length
  115.   for (var i = 0; i < this.length; i++)
  116.     this[i+1] = initArray.arguments[i]
  117. }
  118.  
  119. var hexChars = "0123456789ABCDEF";
  120.  
  121. function Dec2Hex (Dec) 
  122. {
  123.   var a = Dec % 16;
  124.   var b = (Dec - a)/16;
  125.   hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
  126.   return hex;
  127. }
  128.  
  129. function bgChanger (begin, end, steps) 
  130. {
  131.   steps = steps -1 ;
  132.  
  133.   redA     = begin.charAt(0) + begin.charAt(1);
  134.   red_valA = parseInt(redA,'16');
  135.   redB     = end.charAt(0) + end.charAt(1);
  136.   red_valB = parseInt(redB,'16');
  137.   red_int  = ((red_valB - red_valA) / steps) * -1;
  138.   grnA     = begin.charAt(2) + begin.charAt(3);
  139.   grn_valA = parseInt(grnA,'16');
  140.   grnB     = end.charAt(2) + end.charAt(3);
  141.   grn_valB = parseInt(grnB,'16');
  142.   grn_int  = ((grn_valB - grn_valA) / steps) * -1;
  143.   bluA     = begin.charAt(4) + begin.charAt(5);
  144.   blu_valA = parseInt(bluA,'16');
  145.   bluB     = end.charAt(4) + end.charAt(5);
  146.   blu_valB = parseInt(bluB,'16');
  147.   blu_int  = ((blu_valB - blu_valA) / steps) * -1;
  148.  
  149.   step = 2;
  150.   red = red_valA;
  151.   grn = grn_valA;
  152.   blu = blu_valA;
  153.  
  154.   document.bgColor = begin;
  155.  
  156.   while ( steps >= step ) 
  157.   {
  158.     red -= red_int;
  159.     red_round = Math.round(red);
  160.     red_hex = Dec2Hex(red);
  161.  
  162.     grn -= grn_int;
  163.     grn_round = Math.round(grn);
  164.     grn_hex = Dec2Hex(grn);
  165.  
  166.     blu -= blu_int;
  167.     blu_round = Math.round(blu);
  168.     blu_hex = Dec2Hex(blu);
  169.  
  170.     document.bgColor = red_hex + grn_hex + blu_hex;
  171.  
  172.     step++;
  173.   }
  174.   document.bgColor = end;
  175. }
  176.  
  177. </script>
  178. </head>
  179. <body bgcolor=#000000 text=#FFFFFF link="FF0000" vlink="8888FF" alink="FF00FF">
  180. <script>
  181. <!-- 
  182. // black to black (pause)
  183.   bgChanger("000000","000000",25);
  184. // black to red
  185.   bgChanger("000000","FF0000",25);
  186. // red to black
  187.   bgChanger("FF0000","000000",25);
  188. // black to purple 
  189.   bgChanger("000000","AA00EE",25);
  190. // purple to black
  191.   bgChanger("AA00EE","000000",25);
  192. // black to blue
  193.   bgChanger("000000","0000FF",25);
  194. // blue to black
  195.   bgChanger("0000FF","000000",25);
  196. // black to black (pause)
  197.   bgChanger("000000","000000",25);
  198. // -->
  199. </script>
  200. </head>
  201. <body>
  202. <BODY BGCOLOR=000000 text="#ffffff" link="#0000ff" vlink="#c00c0">
  203.  
  204. <CENTER><H2>TEXT & STUFF NOW</CENTER></H2>
  205.  
  206. __4
  207. Clock
  208.  
  209. <!-- This is a clock that shows the system time -->
  210. <!-- ▌≥Φ ≈α±√ ∩εΩατ√Γα■≥ ±Φ±≥σ∞φεσ Γ≡σ∞ . ┬±≥αΓⁿ≥σ ±Ω≡Φ∩≥
  211.  ∩ε±δσ ≥σπα </HEAD> α ±≥≡ε≈Ω≤ ∩ε±δσ <Body> Γ ±Ω≡Φ∩≥σ
  212.  Γ ≥ε ∞σ±Ωε, πΣσ Γ√ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ ≈α±√. -->
  213. <SCRIPT LANGUAGE="JavaScript">
  214.  
  215. var timerID = null;
  216. var timerRunning = false;
  217.  
  218. function stopclock ()
  219. {
  220.   if(timerRunning)
  221.   clearTimeout(timerID);
  222.   timerRunning = false;
  223. }
  224.  
  225. function showtime () 
  226. {
  227.   var now = new Date();
  228.   var hours = now.getHours();
  229.   var minutes = now.getMinutes();
  230.   var seconds = now.getSeconds()
  231.  
  232.   var timeValue = "" + ((hours >12) ? hours -12 :hours)
  233.   timeValue += ((minutes < 10) ? ":0" : ":") + minutes
  234.   timeValue += ((seconds < 10) ? ":0" : ":") + seconds
  235.   timeValue += (hours >= 12) ? " P.M." : " A.M."
  236.   document.clock.face.value = timeValue;
  237.  
  238. // you could replace the above with this
  239. // and have a clock on the status bar:
  240. // window.status = timeValue;
  241.  
  242.   timerID = setTimeout("showtime()",1000);
  243.   timerRunning = true;
  244. }
  245.  
  246. function startclock () 
  247. {
  248. // Make sure the clock is stopped
  249.   stopclock();
  250.   showtime();
  251. }
  252.  
  253. </SCRIPT>
  254.  
  255. <BODY onLoad="startclock(); timerONE=window.setTimeout" BGCOLOR="000080" TEXT="ffffff">
  256.  
  257. <CENTER><form name="clock" onSubmit="0">
  258. <input type="text" name="face" size=13 value=""></CENTER>
  259.  
  260. __5
  261. confirm
  262. <!-- This allows the user confirm entering the page -->
  263. <!-- ▌≥ε≥ ±Ω≡Φ∩≥ τα∩≡α°ΦΓασ≥ ∩ε≥Γσ≡µΣσφΦσ φα Γ⌡εΣ
  264.  φα ±≥≡αφΦ≈Ω≤. ╨ατ∞σ±≥Φ≥σ σπε ∩ε±δσ ≥σπα <BODY> -->
  265. <SCRIPT LANGUAGE="JavaScript"><!--
  266. //modified by Coffeecup.com
  267.  
  268. function Info()
  269. {
  270.   if (!confirm("You are entering a site where ........... Press <OK> to enter. Press <Cancel> if you want to change your mind.......... "))
  271.   history.go(-1);return " "
  272. }
  273.  
  274. document.writeln(Info())<!--End--></script>
  275.  
  276. __6
  277. Last Date Modifed
  278. <!-- START of Last Date Modified JavaScript -->
  279. <!--   DESCRIPTION:  This shows the user the last date this page was modified.
  280.     INSTRUCTIONS:  Place this script where you want the Last Date
  281. Modified to show up.  
  282.     FUNCTIONALITY:  Works in both Netscape and IE.
  283. -->
  284. <!-- ╬∩Φ±αφΦσ :▌≥ε≥ ±Ω≡Φ∩≥ ∩εΩατ√Γασ≥ Σα≥≤ ∩ε±δσΣφσΘ ∞εΣΦ⌠ΦΩα÷ΦΦ ±≥≡αφΦ≈ΩΦ.
  285.      ╚φ±≥≡≤Ω÷Φ : ╨ατ∞σ±≥Φ≥σ ²≥ε≥ ±Ω≡Φ∩≥ ≥α∞, πΣσ Γ√ ⌡ε≥σδΦ ß√ ΓΦΣσ≥ⁿ
  286.                  ∩ε±δσΣφ■■ Σα≥≤ ∞εΣΦ⌠ΦΩα÷ΦΦ ±≥≡αφΦ≈ΩΦ.
  287.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  288.  -->
  289.  
  290. <CENTER>
  291. <SCRIPT LANGUAGE="JavaScript">
  292. //Modified by CoffeeCup Software 
  293. //This code is Copyright (c) 1998 CoffeeCup Software 
  294. //All rights reserved. License is granted to a single user to 
  295. //reuse this code on a personal or business Web Site. 
  296. var dateMod = ""  ;dateMod = document.lastModified  ;document.write("Last Updated:  ");  document.write(dateMod);  document.write(); 
  297. // --></SCRIPT>
  298. </CENTER>
  299. <!-- END of Last Date Modified JavaScript -->
  300.  
  301. __7
  302. Mouse over on Status Bar
  303. <!-- This displays 'Your Message Here' in the status bar when the mouse -->
  304. <!--    pointer is over the 'Put Image Here' image -->
  305. <!-- ╬∩Φ±αφΦσ : ┬√ΓεΣΦ≥ ±≥≡ε≈Ω≤ 'Your Message Here' φα ∩αφσδΦ ±≥α≥≤±α 
  306.                 (ΓφΦτ≤), ∩≡Φ φαΓσΣσφΦΦ ∞√°ΩεΘ φα Ωα≡≥ΦφΩ≤ 'Put Image Here'
  307.      ╚φ±≥≡≤Ω÷Φ : ≡ατ∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ≥α∞, πΣσ Γ√ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ Ωα≡≥ΦφΩ≤.
  308.                  ╟α∞σφΦ≥σ 'Your Message Here' φα ±εεß∙σφΦσ, Ωε≥ε≡εσ Γ√ ⌡ε≥Φ≥σ,
  309.                  ┬∩Φ°Φ≥σ Φ∞  Ωα≡≥ΦφΩΦ Γ∞σ±≥ε 'Put Image Here'.
  310.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  311.  -->
  312.  
  313. <CENTER>
  314. <A HREF="URL"  onMouseOver="window.status='Your Message Here'; return true" 
  315. onMouseOut="window.status=''">
  316. <P><IMG SRC="Put Image Here"></A>
  317. </CENTER>
  318.  
  319. __8
  320. Status Bar Message
  321. <!-- This scrolls ' Your Message Here ' in the status bar -->
  322. <!-- ╬∩Φ±αφΦσ : ┬√ΓεΣΦ≥ ßσπ≤∙σΘ ±≥≡εΩεΘ Γ ╧αφσδΦ ±≥α≥≤±α (ΓφΦτ≤) ±εεß∙σφΦσ
  323.                 'You Message Here'
  324.      ╚φ±≥≡≤Ω÷Φ : ╨ατ∞σ±≥Φ≥σ ²≥ε≥ ±Ω≡Φ∩≥ Γ δ■ßε∞ ∞σ±≥σ Γα°σπε ΣεΩ≤∞σφ≥α
  325.                  ∩ε±δσ ≥σπα <BODY>, τα∞σφΦ≥σ ±εεß∙σφΦσ 'Your Message Here'
  326.                  φα ≥ε, Ωε≥ε≡εσ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ.
  327.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  328.  -->
  329.  
  330.  
  331. <SCRIPT LANGUAGE="JavaScript">
  332. //Modified by Coffeecup.com
  333.  
  334. function infoscroll(seed,looped)
  335. {
  336.   var text1  = " Your Text Here ";
  337.   var text2  = "                   and more here..............              ";        
  338.   var msg=text1+text2;
  339.   var putout = " ";
  340.   var c   = 1;
  341.  
  342.   if (looped > 10) 
  343.   {  window.status="<Thanks !>";  }
  344.   else if (seed > 100) 
  345.   {
  346.      seed--;
  347.      var cmd="infoscroll(" + seed + "," + looped + ")";
  348.      timerTwo=window.setTimeout(cmd,100);
  349.   }
  350.   else if (seed <= 100 && seed > 0) 
  351.   {
  352.     for (c=0 ; c < seed ; c++) 
  353.     {  putout+=" ";  }
  354.     putout+=msg.substring(0,100-seed);    
  355.     seed--;
  356.     var cmd="infoscroll(" + seed + "," + looped + ")";
  357.     window.status=putout;
  358.     timerTwo=window.setTimeout(cmd,100);
  359.   }
  360.   else if (seed <= 0) 
  361.   {
  362.     if (-seed < msg.length) 
  363.     {
  364.       putout+=msg.substring(-seed,msg.length);
  365.       seed--;
  366.       var cmd="infoscroll(" + seed + "," + looped + ")";
  367.       window.status=putout;
  368.       timerTwo=window.setTimeout(cmd,100); // 100
  369.     }
  370.     else 
  371.     {
  372.       window.status=" ";
  373.       looped += 1;
  374.       var cmd = "infoscroll(100," + looped + ")";
  375.       timerTwo=window.setTimeout(cmd,75); // 75
  376.     }
  377.   }
  378. }
  379. // -->
  380.  
  381. <!--
  382. infoscroll(100,1)
  383. // -->
  384.  
  385. </SCRIPT>
  386.  
  387. __9
  388. Frame ON - Frame OFF
  389. <!--Frame On Frame Off
  390. This script lets the user choose which version
  391. of your page they want to see. Framepage.html is the 
  392. your page with frames. Regualerpage.html is an alternate
  393. you have created-->
  394. <!-- ╬∩Φ±αφΦσ: ╤ετΣασ≥ Ωφε∩ΩΦ Frame On Φ Frame Off Σδ  ∩≡ε±∞ε≥≡α ΣεΩ≤∞σφ≥α
  395.                ± ⌠≡σΘ∞α∞Φ Φ ßστ.
  396.      ╚φ±≥≡≤Ω÷Φ : ╨ατ∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ≥α∞, πΣσ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ Ωφε∩ΩΦ. ╟α∞σφΦ≥σ 
  397.                  Φ∞  ⌠αΘδα Framepage.html φα Φ∞  Γα°σπε ⌠αΘδα ± ⌠≡σΘ∞α∞Φ,
  398.                  α Regualerpage.html φα Φ∞  ⌠αΘδα ßστ ⌠≡σΘ∞εΓ.
  399.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  400.  -->
  401.  
  402.  
  403. <form><font size="-1"><b>Frames:</b></font> <INPUT TYPE="Button" VALUE="On" onClick="parent.location='framepage.html'"> <INPUT TYPE="Button" VALUE="Off" onClick="parent.location='regularpage.html'"></FORM>
  404.  
  405. __10
  406. Goto Listbox
  407. <!-- GotoBox      Change the VALUES to your links! -->
  408. <!-- ╬∩Φ±αφΦσ : ┬√ΓεΣΦ≥ Γ√∩αΣα■∙≤■ ±≥≡ε≈Ω≤ ± Γα°Φ∞Φ ±±√δΩα∞Φ.
  409.      ╚φ±≥≡≤Ω÷Φ : ╧ε∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ≥α∞, πΣσ Γ√ ⌡ε≥Φ≥σ 
  410.                  ΓΦΣσ≥ⁿ Γ√∩αΣα■∙≤■ ±≥≡ε≈Ω≤. ╟α∞σφΦ≥σ ±±√δΩΦ Γ
  411.                  ≥σπσ <OPTION VALUE> φα ±ΓεΦ, Φ ±εεß∙σφΦ  ∩ε±δσ ²≥Φ⌡ ≥σπεΓ
  412.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  413.  -->
  414.  
  415.  
  416. <CENTER>
  417. <FORM>
  418.  
  419. <SELECT NAME="list">
  420. <OPTION SELECTED VALUE="http://www.coffeecup.com/editor">CoffeeCup Editor
  421. <OPTION VALUE="http://www.netscape.com">Netscape
  422. <OPTION VALUE="http://www.microsoft">Microsoft
  423. <OPTION VALUE="http://www.infoseek.com">Infoseek
  424. </SELECT><P>
  425.  
  426. <INPUT TYPE=BUTTON VALUE="Go Get It!" 
  427. onClick="top.location.href=this.form.list.options[this.form.list.selectedIndex].value">
  428.  
  429. </FORM>
  430. </CENTER>
  431.  
  432. __11
  433. Fade Text
  434. <!--      This fades the text color giving you a rainbow effect.
  435.           Change it by playing with the <FONT COLOR= >  -->
  436. <!-- ╬∩Φ±αφΦσ : ╤ετΣασ≥ ≥σΩ±≥ Ωε≥ε≡√Θ ∩δαΓφε ∞σφ σ≥ ÷Γσ≥ ε≥ φα≈αδα 
  437.                 Γ Ωεφσ÷. ╧ε²Ω±∩σ≡σ∞σφ≥Φ≡≤Θ≥σ ± ≥σπε∞ <FONT COLOR= >
  438.                 Γ ±Ω≡Φ∩≥σ.
  439.      ╚φ±≥≡≤Ω÷Φ : ╧ε∞σ±≥Φ≥σ 1 ≈α±≥ⁿ ±Ω≡Φ∩≥α (Hide the script) Γ δ■ßε∞ ∞σ±≥σ
  440.                  Γα°σΘ ±≥≡αφΦ÷√, α Γ≥ε≡≤■ ≈α±≥ⁿ ±Ω≡Φ∩≥α Γ ≥σ⌡ ∞σ±≥α⌡,
  441.                  πΣσ ⌡ε≥Φ≥σ Φ±∩εδⁿτεΓα≥ⁿ π≡αΣΦσφ≥ ≥σΩ±≥α, Φτ∞σφΦ≥σ ±εεß∙σφΦσ
  442.                  '-->This is the Text, just put yours here !<!__'
  443.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  444.  -->
  445.  
  446. <script language="JavaScript">
  447. <!-- Hide the script from old browsers --
  448.  
  449. // Modified by CoffeeCup Software
  450.  
  451. function MakeArray(n)
  452. {
  453.   this.length=n;
  454.   for(var i=1; i<=n; i++) this[i]=i-1;
  455.   return this
  456. }
  457.  
  458. hex=new MakeArray(16);
  459. hex[11]="A"; 
  460. hex[12]="B"; 
  461. hex[13]="C"; 
  462. hex[14]="D"; 
  463. hex[15]="E"; 
  464. hex[16]="F";
  465.  
  466. function ToHex(x)
  467. {
  468. // Changes a int to hex (in the range 0 to 255)
  469.   var high=x/16;
  470.   var s=high + "";
  471.   s=s.substring(0,2);
  472.   high=parseInt(s,10);
  473.   var left=hex[high+1];
  474.  
  475.   var low=x-high*16;
  476.   s=low+"";
  477.   s=s.substring(0,2);
  478.   low=parseInt(s,10);
  479.   var right=hex[low+1];
  480.  
  481.   var string=left + "" + right;
  482.   return string;
  483. }
  484.  
  485. function fadein(text)
  486. {
  487.   text=text.substring(3,text.length-4);
  488.  
  489.   color_d1=255;
  490.   color_d1b=255;
  491.   color_d1c=255;
  492.  
  493.   mul=color_d1/text.length;   
  494.   for(i=0;i<text.length;i++)
  495.   {
  496.     color_d1=mul*i; 
  497.     color_d1b=255-mul*i;
  498.     color_d1c=255*Math.sin(i/(text.length/3));
  499. // *******
  500. // some other things you can try>> "=255-mul*i" to fade out, "=mul*i" to fade in, or try "255*Math.sin(i/(text.length/3))"
  501. // *******
  502.     color_h1=ToHex(color_d1);
  503.     color_d2=mul*i;
  504.     color_h2=ToHex(color_d2);
  505.  
  506.     color_h1b=ToHex(color_d1b);
  507.     color_d2b=mul*i;
  508.     color_h2b=ToHex(color_d2b);
  509.  
  510.     color_h1c=ToHex(color_d1c);
  511.     color_d2c=mul*i;
  512.     color_h2c=ToHex(color_d2c);
  513.  
  514.     document.write("<FONT COLOR='#FF8000"+color_h1+color_h2+"'>"+text.substring(i,i+1)+'</FONT>');
  515.   }
  516. }
  517. // --End Hiding Here -->
  518. </script>
  519. <SCRIPT LANGUAGE="JavaScript">
  520. <!--
  521. {  fadein("-->This is the Text, just put yours here !<!__");  }
  522. //-->
  523. </SCRIPT>
  524.  
  525. __12
  526. Image Change on MouseOver
  527.  
  528. <!--   DESCRIPTION:  This will make new images pop up when the user places the mouse over them.
  529.  
  530.         INSTRUCTIONS:  Place this script in the HEAD tags of
  531. your webpage.  Then place the original images as "1.gif" "2.gif" "3.gif" and so on...
  532. Then have the pop-up images as "1b.gif" "2b.gif" "3b.gif" and so on.  
  533. Be sure to change the hyperlinks to refer to your webpage.
  534. We have also provided some test images in the CoffeeCup Software folder.
  535. These are "just" for a reference to make this script easier.
  536.  
  537.         FUNCTIONALITY: Works in Netscape 3.0+ and IE 4.0+ only.
  538. -->
  539. <!-- ╬∩Φ±αφΦσ : ╚τ∞σφ σ≥ Ωα≡≥ΦφΩΦ, ∩≡Φ φαστΣσ φα φΦ⌡ ∞√°ΩεΘ.
  540.                 ∞εµσ≥ Φ±∩εδⁿτεΓα≥±  ΩαΩ Φφ≥σ≡αΩ≥ΦΓφα  Ωφε∩Ωα.
  541.      ╚φ±≥≡≤Ω÷Φ : ╧ε∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ∩ε±δσ ≥σπα </TITLE>.
  542.                  ±ετΣαΘ≥σ Ωα≡≥ΦφΩΦ "1.gif" "2.gif" "3.gif" Φ ≥Σ. Ωφε∩εΩ
  543.                  Φ ±εε≥Γσ≥±≥Γσφφε "1b.gif" "2b.gif" "3b.gif" φαµα≥√⌡ Ωφε∩εΩ.
  544.                  Φτ∞σφΦ≥σ ±±√δΩΦ ΓφΦτ≤ ±Ω≡Φ∩≥α φα ±ΓεΦ, ∩ε±≥αΓΦΓ ÷Φ⌠≡√
  545.                  Γ ccOn('') Φ ccOff() Φτεß≡αµσφΦ  Ωφε∩εΩ.
  546.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ ≥εδⁿΩε Γ Netscape 3.0+ Φ Γ IE 4.0+.
  547.  -->
  548.  
  549. <SCRIPT LANGUAGE="JavaScript">
  550.  
  551. //Modified by CoffeeCup Software 
  552. //This code is Copyright (c) 1998 CoffeeCup Software 
  553. //All rights reserved. License is granted to a single user to 
  554. //reuse this code on a personal or business Web Site. 
  555.  
  556.  
  557. <!--
  558.         if(document.images) {
  559.                 ccover = new Array(6);
  560.                 ccout = new Array(6);
  561.                 ccover[1]=new Image;
  562.                 ccout[1]=new Image;
  563.                 for(var n=2;n<=5;n++) {
  564.                         ccover[n]=new Image;
  565.                         ccout[n]=new Image;
  566.                 }
  567.                 for(var n=1;n<=5;n++) {
  568.                         ccover[n].src=""+n+"b.gif";
  569.                         ccout[n].src=""+n+".gif";
  570.                 }
  571.         }
  572.         function ccOn(i) {
  573.                 if(document.images) document.images["cc" + i].src=ccover[i].src;
  574.         }
  575.         function ccOff(i) {
  576.                 if(document.images) document.images["cc" + i].src=ccout[i].src;
  577.         }
  578. //-->
  579.  
  580.  
  581. </SCRIPT>
  582.  
  583. </HEAD>
  584. <BODY>
  585.  
  586.         <A HREF="http://www.coffeecup.com/" onMouseOver=ccOn("1") onMouseOut=ccOff("1")><IMG NAME="cc1" SRC="1.gif" BORDER=0 HSPACE=0 VSPACE=0></A><BR>
  587.  
  588.  
  589.         <A HREF="http://www.coffeecup.com/" onMouseOver=ccOn("2") onMouseOut=ccOff("2")><IMG NAME="cc2" SRC="2.gif" BORDER=0 HSPACE=0 VSPACE=0></A><BR>
  590.  
  591.  
  592.         <A HREF="http://www.coffeecup.com/" onMouseOver=ccOn("3") onMouseOut=ccOff("3")><IMG NAME="cc3" SRC="3.gif" BORDER=0 HSPACE=0 VSPACE=0></A><BR>
  593.  
  594.  
  595.         <A HREF="http://www.coffeecup.com/" onMouseOver=ccOn("4") onMouseOut=ccOff("4")><IMG NAME="cc4" SRC="4.gif" BORDER=0 HSPACE=0 VSPACE=0></A><BR>
  596.  
  597.  
  598.         <A HREF="http://www.coffeecup.com/" onMouseOver=ccOn("5") onMouseOut=ccOff("5")><IMG NAME="cc5" SRC="5.gif" BORDER=0 HSPACE=0 VSPACE=0></A><BR>
  599.  
  600. <P>
  601.  
  602. __13
  603. Button Change on click -N
  604. <!-- Changes an image when clicked on, cool for action 
  605.      i.e. button-then pushed button-->
  606. <!-- ╬∩Φ±αφΦσ : ╚τ∞σφ σ≥ Ωα≡≥ΦφΩ≤ ∩≡Φ ΩδΦΩσ ∞√°ΩεΘ φα φσσ.
  607.      ╚φ±≥≡≤Ω÷Φ : ╧ε∞σ±≥Φ≥σ ±Ω≡Φ∩≥ Γ δ■ßεσ ∞σ±≥ε ∩ε±δσ ≥σπα <BODY>
  608.                  ±ετΣαΘ≥σ Φτεß≡αµσφΦ  disabled1.gif φσ φαµα≥εΘ Ωφε∩ΩΦ
  609.                  Φ active1.gif φαµα≥εΘ ±εε≥Γσ≥±≥Γσφφε.
  610.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  611.  -->
  612.  
  613. <script language="JavaScript">
  614. up = new Image(32,32);
  615. up.src = "active1.gif";
  616. down = new Image(32,32);
  617. down.src = "disabled1.gif";
  618.  
  619. function switchThis() { document.coffee.src=up.src; }
  620. </script>
  621.  
  622. <A HREF = "javascript:switchThis()"
  623.   onMouseClick="document.coffee.src=up.src"
  624.   onMouseOut="document.coffee.src=down.src">
  625. <IMG NAME = "coffee" border=0 SRC = "active1.gif"></A>
  626.  
  627. __14
  628. E-mail Form
  629. <!-- Start of E-Mail Form JavaScript-->
  630. <!--   DESCRIPTION:  This will send you an e-mail with whatever your visitor enters in the fields. 
  631.     INSTRUCTIONS:  Place this entire script where you want the form to show up on the page.  You can change the values (Name, E-mail, Phone, etc.)  Just be sure to change that fields value in the script.  See where is says, "document.ccform.name.value", that
  632.     FUNCTIONALITY: Works in both Netscape and IE.  ONLY WORKS IF THE VISITOR HAS THEIR E-MAIL SET UP ON THEIR BROWSER.  
  633. -->
  634. <!-- ╬∩Φ±αφΦσ : ╤ετΣασ≥ ⌠ε≡∞≤ ± ∩ε∞ε∙ⁿ Ωε≥ε≡εΘ ∩ε±σ≥Φ≥σδⁿ ∞εµσ≥
  635.                 ∩ε±δα≥ⁿ Γα∞ ∩ε≈≥≤
  636.      ╚φ±≥≡≤Ω÷Φ : ╧ε∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ≥≤Σα, πΣσ Γ√ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ ⌠ε≡∞≤.
  637.                  ╤∞σφΦ≥σ τφα≈σφΦ  ∩εδ  action="mailto:you@youprovider.com"
  638.                  φα αΣ≡σ± ±ΓεσΘ ²δσΩ≥≡εφφεΘ ∩ε≈≥√.
  639.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE, φε ╥╬╦▄╩╬ σ±δΦ E-MAIL ≤±≥αφεΓδσφ
  640.                    Γ ß≡α≤τσ≡σ.
  641.  -->
  642.  
  643. <SCRIPT LANGUAGE=JavaScript>
  644. //Modified by CoffeeCup Software 
  645. //This code is Copyright (c) 1998 CoffeeCup Software 
  646. //All rights reserved. License is granted to a single user to 
  647. //reuse this code on a personal or business Web Site. 
  648. <!--  
  649.   if (navigator.appVersion.lastIndexOf('Win') != -1) {
  650.       dropline = "\r\n"  } else { dropline = "\n" }
  651. function coffeemsg(form) {
  652. document.ccform.Message.value = (
  653.    '  ' + dropline + dropline
  654.   + '-----CoffeeCup AutoMated E-Mail Form---START----- ' + dropline
  655.   + dropline + dropline 
  656.   + 'Name     : ' + document.ccform.name.value + dropline
  657.   + 'Phone    : ' + document.ccform.phone.value + dropline
  658.   + 'Subject  : ' + document.ccform.subject.value + dropline
  659.   + 'E-mail    : ' + document.ccform.email.value + dropline
  660.   + 'Message: ' + document.ccform.message.value
  661.   + dropline  + dropline
  662.   + '-----CoffeeCup AutoMated E-Mail Form----END------ ' + dropline
  663.   + dropline + 'E-Mail Form JavaScript by:' + dropline
  664.   + 'http://www.coffeecup.com' + dropline
  665.   + dropline + dropline 
  666.   + ' FIELD VALUES: ' + dropline
  667.   + '  ' + dropline
  668. );
  669. }
  670. // -->
  671. </SCRIPT>
  672.  
  673. <FORM name="ccform" method="post" action="mailto:you@yourprovider.com?subject=Message"
  674.  enctype="text/plain">
  675. <INPUT type=hidden name="Message">
  676.  
  677. <FONT FACE="VERDANA, ARIAL"><B>Name:</B></FONT><P>
  678. <INPUT type="text" size=25 name="name" onChange="coffeemsg()">
  679.  
  680. <P>
  681. <FONT FACE="VERDANA, ARIAL"><B>Phone:</B><P>
  682. <INPUT type="text" size=25 name="phone" onChange="coffeemsg()">
  683.  
  684. <P>
  685. <FONT FACE="VERDANA, ARIAL"><B>Email:</B></FONT><P>
  686. <INPUT type="text" size=25 name="email" onChange="coffeemsg()">
  687.  
  688. <P>
  689. <FONT FACE="VERDANA, ARIAL"><B>Subject:</B></FONT><P>
  690. <INPUT type="text" size=25 name="subject" onChange="coffeemsg()">
  691.  
  692. <P>
  693. <FONT FACE="VERDANA, ARIAL"><B>Message:</B></FONT><P>
  694. <TEXTAREA rows=5 cols=45 wrap="auto" name=message onChange="coffeemsg()"></TEXTAREA>
  695.  
  696. <P>
  697. <CENTER>
  698. <INPUT type=submit value="Send Message" onClick="coffeemsg()">
  699. </CENTER>
  700. </FORM>
  701. <P>
  702. <!-- End of E-Mail Form JavaScript-->
  703.  
  704. __15
  705. Notepad
  706. <!-- A Script that types in a box that looks like notepad very cool
  707.  
  708.        The speed of the typing can be adjusted by raising 
  709.        or lowering the number in the setTimeout function. 
  710. -->
  711. <!-- ╬∩Φ±αφΦσ : ╤ετΣασ≥ ∩εδσ ΓΓεΣα, Γ Ωε≥ε≡ε∞ ∩ε±≥σ∩σφε ΩαΩ ß√ "∩σ≈α≥ασ≥± "
  712.                 Γα°σ ±εεß∙σφΦσ.
  713.      ╚φ±≥≡≤Ω÷Φ : ╨ατ∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ∩σ≡σΣ ≥σπε∞ </HEAD>.≥ε ≈≥ε ±≥εΦ≥ 
  714.                  Γ ±Ω≡Φ∩≥σ ∩ε±δσ ≥σπα <body> Γ ≥ε∞ ∞σ±≥σ, πΣσ ⌡ε≥Φ≥σ
  715.                  ΓΦΣσ≥ⁿ ßδεΩφε≥.
  716.                  ╟α∞σφΦ≥σ ±εεß∙σφΦ  fArray[0]="Message 1 goes here. "
  717.                  φα ±ΓεΦ. ╧≡ΦµσδαφΦΦ ΣεßαΓⁿ≥σ/≤ßσ≡Φ≥σ ±εεß∙σφΦ ,
  718.                  φ≤∞σ≡≤  ∞α±±ΦΓ ∩ε ε≈σ≡σΣΦ (fArray[0],fArray[1],fArray[2], Φ≥Σ)
  719.                  ∩ε±δσ ²≥επε Φτ∞σφΦ≥σ τφα≈σφΦσ ∩σ≡σ∞σφφεΘ NumMesage φα ΩεδΦ≈σ±≥Γε
  720.                  ±εεß∙σφΦΘ Ωε≥ε≡εσ Γ√ ±ΣσδαδΦ.
  721.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  722.  -->
  723.  
  724. <script language="JavaScript">
  725.  
  726. function makeArray() 
  727. {
  728.   this.length = makeArray.arguments.length
  729.   for (var i = 0; i < this.length; i++)
  730.   this[i+1] = makeArray.arguments[i]
  731. }
  732.  
  733. var fArray = new makeArray;
  734. fArray[0]="Message 1 goes here. "
  735. fArray[1]="Message 2 goes here. "
  736. fArray[2]="Message 3 goes here. "
  737. fArray[3]="Message 4 goes here. "
  738.  
  739. var x = 1;
  740. var y = 0;
  741. var NumMesage = 4;
  742. var msg1 = fArray[y];
  743.  
  744. function newsFeed() 
  745. {
  746.   if (x==msg1.length+1) 
  747.   {
  748.     for (var z=0; z < 7000; z++);
  749.     y+=1;
  750.     if (y > NumMesage-1) y=0;
  751.     document.form1.news2.value=' ';
  752.     msg1 = fArray[y];
  753.     x=0;
  754.   }
  755.   document.form1.news2.value=msg1.substring(0,x);  
  756.   x+=1;
  757.   setTimeout("newsFeed() ",1);
  758. }
  759. </script>
  760.  
  761. <body bgcolor=teal link=goldenrod onLoad="newsFeed()">
  762.  
  763. <form name="form1">
  764. <textarea wrap=physical rows=10 cols=25 name="news2">
  765. </textarea>
  766. </form>
  767.  
  768. __16
  769. Scrolling Button
  770. <!--This is a scrolling alert button.  This example is for mail, but if you change
  771. the action = to a URL, it will also go to a site.  Make sure to reflect the words
  772. on your scroll to match where you are taking them-->
  773. <!-- ╬∩Φ±αφΦσ : ±ετΣασ≥ Ωφε∩Ω≤ Φ ∩≤±Ωασ≥ ∩ε φσΘ ßσπ≤∙≤■ ±≥≡εΩ≤.
  774.                 ┬ ∩≡Φ∞σ≡σ ²≥ε  ±εεß∙σφΦσ "Mail"
  775.      ╚φ±≥≡≤Ω÷Φ : ∩ε∞σ±≥Φ≥σ ±Ω≡Φ∩≥ ≥≤Σα, πΣσ ⌡ε≥Φ≥σ ΓΦΣσ≥ⁿ ≥αΩ≤■ Ωφε∩Ω≤.
  776.                  ╚τ∞σφΦ≥σ ±εεß∙σφΦσ msg="  Mail  Mail  MAil  Mail  MAil";
  777.                  φα ±Γεσ. ╟α∞σφΦ≥σ τφα≈σφΦ  ≥σπα action φα ≥ε, Ωε≥ε≡εσ ⌡ε≥Φ≥σ.
  778.                  ΦδΦ Γ∩Φ°Φ≥σ ≥≤Σα ±ΓεΘ e-mail.
  779.      ├Σσ ≡αßε≥ασ≥: ╨αßε≥ασ≥ Φ Γ Netscape Φ Γ IE.
  780.  -->
  781.  
  782. <form name="form2" action=mailto:Whoever@net.com>
  783. <input type="submit" name="banner" VALUE=".......Submit......." onClick="alert('Here We go !')">
  784. <br>
  785. </form>
  786. <script language="JavaScript">
  787. // Modified by CoffeeCup Software
  788. var id,pause=0,position=0;
  789.  
  790. function banner() 
  791. {
  792.   // variables declaration
  793.   var i,k,msg="  Mail  Mail  MAil  Mail  MAil";
  794.  
  795.   // increase msg
  796.   k=(60/msg.length)+1;
  797.   for(i=0;i<=k;i++) msg+=" "+msg;
  798.  
  799.   // show it to the window
  800.   document.form2.banner.value=msg.substring(position,position+60);
  801.  
  802.   // set new position
  803.   if(position++==msg.length) position=0;
  804.  
  805.   // repeat at entered speed 
  806.   id=setTimeout("banner()",150); }
  807.  
  808. // end -->
  809. banner();
  810. </script>
  811.  
  812. __17
  813. Greetings with Time and Date
  814. <!-- This is a great Clock and Calendar, You MUST change the color= attribute 
  815. in the script so you can view it on your pages-->
  816.  
  817. <script language="JavaScript">
  818. <!-- hide script from old browsers
  819. // Modified by CoffeeCup Software
  820. function process(){}
  821.  
  822.   today = new Date()
  823.  
  824.   if(today.getMinutes() < 10) {
  825.     pad = "0"}
  826.   else
  827.     pad = "";
  828.   document.write("<center><FONT SIZE=4 color=black>Welcome!!</FONT></center>")
  829.  
  830.   if((today.getHours() < 12) && (today.getHours() >= 6))
  831.   {  document.write("<center><FONT SIZE=4 color=black>Good Morning</FONT></center>")}
  832.  
  833.   if((today.getHours() >= 12) && (today.getHours() < 18))
  834.   {  document.write("<center><FONT SIZE=4 color=black>Good Afternoon</FONT></center>")}
  835.  
  836.   if((today.getHours() >= 18) && (today.getHours() <= 23))
  837.   {  document.write("<center><FONT SIZE=4 color=black>Good Evening</FONT></center>")}
  838.  
  839.   if((today.getHours() >= 0) && (today.getHours() < 4))
  840.   {  document.write("<center><FONT SIZE=4 color=black>You're up late today.</FONT></center>")}
  841.  
  842.   if((today.getHours() >= 4) && (today.getHours() <= 6))
  843.   {  document.write("<center><FONT SIZE=4 color=black>Wow! You are up early!!</FONT></center>")}
  844.  
  845.   document.write("<center><FONT SIZE=3 color=black>Time: ",today.getHours(),":",pad,today.getMinutes())
  846.  
  847.   document.write("  Date: ",today.getMonth()+1,"/",today.getDate(),"/",today.getYear(),"<br></font></center>");
  848. // end hiding contents -->
  849. </script>
  850.  
  851. __18
  852. Opens a separate window -N
  853. <!-- This script opens a separate window for the locations you give it.
  854. Pages are neat but pictures make a cool photo album. Change the 
  855. attributes that read menubar=0,toolbar=0, etc... and Width & Height 
  856. to meet your needs.  Make sure you place the URL's you want to go 
  857. to and their names below.-->
  858.  
  859. <script language="JavaScript">
  860. <!-- Hide the script from old browsers --
  861. function surfto(form) 
  862. {
  863.   var myindex=form.dest.selectedIndex
  864.   window.open(form.dest.options[myindex].value,"main","menubar=1,toolbar=0,location=0,directories=0,status=1,copyhistory=0,width=235,height=235");
  865. }
  866. //-->
  867. </SCRIPT>
  868. <CENTER>
  869. <FORM NAME="myform">
  870.   <SELECT NAME="dest" SIZE=1>
  871.     <OPTION VALUE="http://www.coffeecup.com">CoffeeCup Software
  872.     <OPTION VALUE="http://www.tmcm.com">Too Much Coffee Man
  873.     <OPTION VALUE="http://www.netscape.com">Netscape
  874.     <OPTION VALUE="http://www.infoseek.com">InfoSeek
  875.   </SELECT>
  876. <P>
  877. <INPUT TYPE="BUTTON" VALUE="Go  !" onClick="surfto(this.form)">
  878. </FORM>
  879. </CENTER>
  880.  
  881. __19
  882. How the User Got to You Page
  883. <!-- This script tells the user where he came from and
  884. what browser and operating system they are using.  You 
  885. can change the Font color, size, and text of the message if you wish.
  886. -->
  887.  
  888. <center><script language="javascript">
  889. <!--
  890. var where = document.referrer
  891. var name = navigator.appName
  892. var vers = navigator.appVersion
  893.  
  894. document.write("<FONT COLOR=black><FONT SIZE=2>...and you came here via <BR>"+where+" <BR> "+name+"  "+vers+"<BR></FONT></FONT>")
  895. // -->
  896.  
  897. </script></center>
  898.  
  899. __20
  900. Changes images -N
  901. <!-- This is cool. It will put or change a picture beside
  902. your link when the user touches it. We have this
  903. example on our front page if you want to see exactly
  904. how it works. Just replace .gifs with what you want to
  905. use (arrows are popular). Make sure that the pictures are 
  906. the same size. (Hint-- Make one of them tranparent to make 
  907. the image appear out of the blue)
  908. Currently only works in Netscape.-->
  909.  
  910.  
  911. <SCRIPT LANGUAGE="JavaScript">
  912. <!--
  913. // Modified by CoffeeCup Software
  914. ACTIVE = "active.gif"        //image over the link
  915. DISABLED = "disabled.gif" //image when not over the link
  916.  
  917. function imgover(imgname)
  918. { imgname.src = ACTIVE }
  919.  
  920. function imgout(imgname)
  921. { imgname.src = DISABLED }
  922. //-->
  923.  
  924. __21
  925. Link Alert
  926.  
  927.  
  928. <!--   DESCRIPTION:  This will cause an alert message before the browser goes to the link chosen.
  929.  
  930.     INSTRUCTIONS:  Place the script in your links. 
  931.     
  932.     FUNCTIONALITY: Works in Both Netscape and IE.
  933.  
  934. //Modified by CoffeeCup Software 
  935. //This code is Copyright (c) 1997 CoffeeCup Software 
  936. //all rights reserved. License is granted to a single user to 
  937. //reuse this code on a personal or business Web Site. 
  938. -->
  939.  
  940.  
  941.  
  942. <BODY BGCOLOR=#FFFFFF>
  943. <CENTER>
  944.  
  945. <FONT SIZE=4 FACE=VERDANA>
  946. <A HREF="http://www.coffeecup.com" OnMouseOver="window.status='CoffeeCup Software'; return true"; OnClick="window.alert('You are now going to CoffeeCup Software....Dont wait another second....click OK A.S.A.P. !!!')">CoffeeCup Software</A>
  947.  
  948. <P>
  949.  
  950.  
  951.  
  952. <A HREF="http://www.coffeecup.com/mapper" 
  953. OnMouseOver="window.status='CoffeeCup Image Mapper++'; return true"; OnClick="window.alert('Onward to our Image Mapper++ !!  Tee Hee Hee')">CoffeeCup Image Mapper++</A><P>
  954.  
  955. </FONT>
  956. </CENTER>
  957.  
  958. __22
  959. Link Banner
  960. <HEAD>
  961.  
  962. <!--   DESCRIPTION:  This will place a message in the text box when
  963. the user mouses over a link.
  964.  
  965.     INSTRUCTIONS:  Place this script in the HEAD tags of
  966. your webpage.  Then place the link and message to appear when the 
  967. mouse goes over it.
  968.     
  969.     FUNCTIONALITY:  Works in both Netscape & IE.
  970.  
  971. -->
  972.  
  973. <SCRIPT LANGUAGE="JavaScript">
  974.  
  975. //Modified by CoffeeCup Software 
  976. //This code is Copyright (c) 1997 CoffeeCup Software 
  977. //all rights reserved. License is granted to a single user to 
  978. //reuse this code on a personal or business Web Site. 
  979.  
  980.  
  981.     var cuMsg = 'MouseOver Message!'; 
  982.     function update(msg) {
  983.         var pad_str="";
  984.         n = msg.length;
  985.         if(n<80) {
  986.             pad = (80-n)/2;
  987.             for(var i=0; i<pad; i++) {
  988.                 pad_str+=" ";
  989.             }    
  990.         }    
  991.         cuMsg = pad_str + msg;
  992.         document.ccMsg.field.value = cuMsg;
  993.                }
  994. </SCRIPT>
  995.  
  996. </HEAD>
  997.  
  998. <BODY  BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#FF0000" VLINK="#FF0000" ALINK="#FF0000">
  999.  
  1000.  
  1001. <CENTER>
  1002.  <FONT FACE=VERDANA SIZE=3>
  1003. <FORM NAME="ccMsg" onSubmit="return false">
  1004. <input type="text" name="field" size=60 value="        Welcome to my page I hope you enjoy yourself!" onChange="nochange()">
  1005. </form></center>
  1006.  
  1007.  
  1008. <CENTER>
  1009.  
  1010.  <A HREF="http://www.coffeecup.com"
  1011. onMouseOver="update('The Home of the CoffeeCup HTML Editor++')"  onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>CoffeeCup Software</B></A><P> 
  1012.  
  1013.   
  1014.  <A HREF="http://www.netscape.com"
  1015. onMouseOver="update('Netscape and the Mozilla Crew.')" onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>Netscape</B></A><P> 
  1016.  
  1017.  
  1018.  <A HREF="http://www.microsoft.com"
  1019. onMouseOver="update('Bill Gates Ruling the World !')" onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>Microsoft</B></A><P> 
  1020.  
  1021.  
  1022.  <A HREF="http://www.infoseek.com"
  1023. onMouseOver="update('Find Some Information about Something.')" onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>Infoseek</B></A><P> 
  1024.  
  1025.  
  1026.  <A HREF="http://www.tucows.com"
  1027. onMouseOver="update('Tucows for the Best in Internet Software !')" onMouseOut="update(' ')" onClick="update('Here we go...............')"><B>TuCows</B></A><P> 
  1028.  
  1029.  <A HREF="http://www.tabnet.net"
  1030. onMouseOver="update('TABNet:  The ultimate website Host !')" onMouseOut="update(' ')" onClick="update('----[ L O A D I N G }----')"><B>TABNet</B></A><P> 
  1031.  
  1032. </CENTER>
  1033. </FONT>
  1034.  
  1035. __23
  1036. Link Without Click
  1037.  
  1038. <!--   DESCRIPTION:  This will make the browser jump to the
  1039. page of your choice once the user puts the mouse over the link.
  1040.  
  1041.     INSTRUCTIONS:  Place this code in your webpage.  Use the 
  1042. model given to modify your own links.  Can be used with an Image 
  1043. or simply use text.
  1044.  
  1045.     FUNCTIONALITY:  Works in both Netscape & IE.
  1046.  
  1047. //Modified by CoffeeCup Software 
  1048. //This code is Copyright (c) 1997 CoffeeCup Software 
  1049. //all rights reserved. License is granted to a single user to 
  1050. //reuse this code on a personal or business Web Site. 
  1051.  
  1052. -->
  1053. <CENTER><a href="http://www.coffeecup.com/" target=main onmouseover="window.open
  1054.  ('http://www.coffeecup.com/');"><FONT SIZE=7 FACE=ARIAL COLOR=#804000>CoffeeCup Software</FONT></a></CENTER><P>
  1055.  
  1056. __24
  1057. Navigation
  1058. <HEAD>
  1059. <!--   DESCRIPTION:  This will make a small Navigation Window in which you can place links to different pages.
  1060.  
  1061.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1062. your webpage.  
  1063.  
  1064.     FUNCTIONALITY:  Works in both Netscape & IE.
  1065. -->
  1066.  
  1067. <SCRIPT LANGUAGE="JavaScript">
  1068.  
  1069. //Modified by CoffeeCup Software 
  1070. //This code is Copyright (c) 1997 CoffeeCup Software 
  1071. //all rights reserved. License is granted to a single user to 
  1072. //reuse this code on a personal or business Web Site. 
  1073.  
  1074. <!--
  1075.  
  1076. coffeeWin=window.open("","coffeeWin","toolbar=no,width=200,height=250,directories=no,menubar=no,SCROLLBARS=yes");
  1077.  
  1078. coffeeWin.document.write("<HTML>");
  1079. coffeeWin.document.write("<HEAD>");
  1080.  
  1081. coffeeWin.document.write("</HEAD>");
  1082.  
  1083. coffeeWin.document.write("<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF VLINK=#0000FF>")
  1084.  
  1085. coffeeWin.document.write("<CENTER>")
  1086.  
  1087. coffeeWin.document.write("<FONT FACE=VERDANA,ARIAL SIZE=2>");
  1088.  
  1089. coffeeWin.document.write("<B>");
  1090.  
  1091. coffeeWin.document.write("<FONT SIZE=3>Navigation Window</FONT>");
  1092.  
  1093. coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>");
  1094.  
  1095. coffeeWin.document.write("<A HREF=http://www.coffeecup.com TARGET=MAIN>CoffeeCup Software</A>");
  1096.  
  1097. coffeeWin.document.write("<P>");
  1098.  
  1099. coffeeWin.document.write("<A HREF=http://www.microsoft.com TARGET=MAIN>Microsoft</A>");
  1100.  
  1101. coffeeWin.document.write("<P>");
  1102.  
  1103. coffeeWin.document.write("<A HREF=http://www.netscape.com TARGET=MAIN>Netscape</A>");
  1104.  
  1105. coffeeWin.document.write("<P>");
  1106.  
  1107. coffeeWin.document.write("<A HREF=http://www.infoseek.com TARGET=MAIN>InfoSeek</A>");
  1108.  
  1109. coffeeWin.document.write("<P>");
  1110.  
  1111. coffeeWin.document.write("</B>");
  1112.  
  1113. coffeeWin.document.write("</FONT>");
  1114.  
  1115. coffeeWin.document.write("</BODY>");
  1116.  
  1117. coffeeWin.document.write("</HTML>");
  1118.  
  1119.  
  1120.  
  1121. //-->
  1122. </SCRIPT>
  1123. </HEAD>
  1124.  
  1125.  
  1126.  
  1127. __25
  1128. Random Alert
  1129. <!--   DESCRIPTION:  This will create a random alert message of any kind.  Shown here in HTML Tags.  You can replace the tags with phrases, help tips, anything that can be randomly diplayed.
  1130.  
  1131.     INSTRUCTIONS:  Place this script in the BODY of your webpage.  Change the VALUE to change the name on the Button.  Change the HTML Tags to whatever variable you wish to have randomly displayed.
  1132.  
  1133.     FUNCTIONALITY: Works in both Netscape & IE.
  1134.  
  1135. //Modified by CoffeeCup Software 
  1136. //This code is Copyright (c) 1997 CoffeeCup Software 
  1137. //all rights reserved. License is granted to a single user to 
  1138. //reuse this code on a personal or business Web Site. 
  1139.  
  1140. -->
  1141.  
  1142.  
  1143. <FORM>
  1144. <INPUT TYPE="button" NAME="coffee" VALUE="HTML TAGS" onClick="randomMessage()">
  1145. </FORM>
  1146.  
  1147. <SCRIPT LANGUAGE="JavaScript">
  1148.  
  1149. <!--
  1150. function randomMessage() {
  1151.  
  1152.         var cc = new Array(30)
  1153.         cc[0] = "<BODY>"
  1154.         cc[1] = "<HTML>"
  1155.         cc[2] = "<HEAD>"
  1156.         cc[3] = "<TITLE>"
  1157.         cc[4] = "<HR>"
  1158.         cc[5] = "<IMG SRC=>"
  1159.         cc[6] = "<B>"
  1160.         cc[7] = "<U>"
  1161.         cc[8] = "<UL>"
  1162.         cc[9] = "<OL>"
  1163.         cc[10] = "<BODY>"
  1164.         cc[11] = "<HTML>"
  1165.         cc[12] = "<HEAD>"
  1166.         cc[13] = "<TITLE>"
  1167.         cc[14] = "<HR>"
  1168.         cc[15] = "<IMG SRC=>"
  1169.         cc[16] = "<B>"
  1170.         cc[17] = "<U>"
  1171.         cc[18] = "<UL>"
  1172.         cc[19] = "<OL>"
  1173.         cc[20] = "<BODY>"
  1174.         cc[21] = "<HTML>"
  1175.         cc[22] = "<HEAD>"
  1176.         cc[23] = "<TITLE>"
  1177.         cc[24] = "<HR>"
  1178.         cc[25] = "<IMG SRC=>"
  1179.         cc[26] = "<B>"
  1180.         cc[27] = "<U>"
  1181.         cc[28] = "<UL>"
  1182.         cc[29] = "<OL>"
  1183.         var now = new Date()
  1184.         var sec = now.getSeconds()
  1185.         alert("HTML TAG:\r" + cc[sec % 30])
  1186. }
  1187.  
  1188. //-->
  1189.  
  1190. </SCRIPT>
  1191.  
  1192. __26
  1193. Slide Scroll
  1194. <!--   DESCRIPTION:  This script will make your status message slide into place.  Neat effect.  
  1195.  
  1196.     INSTRUCTIONS:  Place this script in the BODY tags of
  1197. your webpage.  Then place the appropriate message in the var msg value. 
  1198.  
  1199.     FUNCTIONALITY: Works in both Netscape and IE.
  1200.  
  1201.  
  1202.  
  1203. //Modified by CoffeeCup Software 
  1204. //This code is Copyright (c) 1997 CoffeeCup Software 
  1205. //all rights reserved. License is granted to a single user to 
  1206. //reuse this code on a personal or business Web Site. 
  1207.  
  1208. -->
  1209.  
  1210. <BODY onLoad="timerONE=window.setTimeout('slide(120,0)',20);">
  1211.  
  1212. <SCRIPT LANGUAGE="JavaScript">
  1213.  
  1214. function slide(jumpSpaces,position) {
  1215.   var msg = "This JavaScript will slide in your desired message....Cool...isn't it???.......drink more coffee"
  1216.   var out = ""
  1217.   if (endScroll) {return false}
  1218.   for (var i=0; i<position; i++) 
  1219.     {out += msg.charAt(i)}
  1220.   for (i=1;i<jumpSpaces;i++) 
  1221.     {out += " "}
  1222.   out += msg.charAt(position)
  1223.   window.status = out
  1224.   if (jumpSpaces <= 1) {
  1225.     position++
  1226.     if (msg.charAt(position) == ' ') 
  1227.       {position++ }
  1228.     jumpSpaces = 100-position
  1229.   } else if (jumpSpaces >  3)
  1230.        {jumpSpaces *= .75}
  1231.   else
  1232.     {jumpSpaces--}
  1233.   if (position != msg.length) {
  1234.     var cmd = "slide(" + jumpSpaces + "," + position + ")";
  1235.     scrollID = window.setTimeout(cmd,5);
  1236.   } else {
  1237.     scrolling = false
  1238.     return false 
  1239.   }
  1240.   return true
  1241. }
  1242. function ccSetup() {
  1243.  if (scrolling) 
  1244.   if (!confirm('Re-initialize slide?'))
  1245.    return false 
  1246.    endScroll = true 
  1247.    scrolling = true 
  1248.    var killID = window.setTimeout('endScroll=false',6)
  1249.    scrollID = window.setTimeout('slide(100,0)',10)
  1250.    return true 
  1251. }
  1252. var scrollID = Object
  1253. var scrolling = false
  1254. var endScroll = false
  1255. </SCRIPT>
  1256.  
  1257. __27
  1258. Roll Scroll
  1259. <!--   DESCRIPTION:  This will make your status banner scrabble together.
  1260.  
  1261.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1262. your webpage.  Then place the appropriate messages in the areas below.
  1263.  
  1264.     FUNCTIONALITY:  Works in both Netscape and IE.
  1265. -->
  1266.  
  1267. <SCRIPT LANGUAGE="JavaScript">
  1268.  
  1269. //Modified by CoffeeCup Software 
  1270. //This code is Copyright (c) 1997 CoffeeCup Software 
  1271. //all rights reserved. License is granted to a single user to 
  1272. //reuse this code on a personal or business Web Site. 
  1273.  
  1274. <!--
  1275. var speed = 13
  1276.  
  1277. var pause = 1333
  1278.  
  1279. var timerID = null
  1280.  
  1281. var scrabbleBanner = false
  1282.  
  1283. var cc = new Array()
  1284.  
  1285. cc[0] = "*********CoffeeCup Software*********"
  1286. cc[1] = "Your First Message"
  1287. cc[2] = "Your Second Message"
  1288. cc[3] = "Your Third Message"
  1289.  
  1290. var message = 0
  1291.  
  1292. var state = ""
  1293.  
  1294. newBanner()
  1295.  
  1296. function stopBanner() {
  1297.     if (scrabbleBanner)
  1298.         clearTimeout(timerID)
  1299.  
  1300.     scrabbleBanner = false
  1301. }
  1302.  
  1303. function firstBanner() {
  1304.     stopBanner()
  1305.     seeBanner()
  1306. }
  1307.  
  1308. function newBanner() {
  1309.     state = ""
  1310.     for (var i = 0; i < cc[message].length; ++i) {
  1311.         state += "0"
  1312.     }
  1313. }
  1314.  
  1315. function seeBanner() {
  1316.     if (getString()) {
  1317.         message++
  1318.         if (cc.length <= message)
  1319.             message = 0
  1320.  
  1321.         newBanner()
  1322.  
  1323.         timerID = setTimeout("seeBanner()", pause)
  1324.  
  1325.         scrabbleBanner = true
  1326.     } else {
  1327.         var str = ""
  1328.  
  1329.         for (var c = 0; c < state.length; ++c) {
  1330.             str += (state.charAt(c) == "1") ? cc[message].charAt(c) : "     "
  1331.         }
  1332.         window.status = str
  1333.         timerID = setTimeout("seeBanner()", speed)
  1334.         scrabbleBanner = true
  1335.     }
  1336. }
  1337.  
  1338. function getString() {
  1339.  
  1340.     var full = true
  1341.     for (var c = 0; c < state.length; ++c) {
  1342.         if (state.charAt(c) == 0)
  1343.             full = false
  1344.     }
  1345.     if (full)
  1346.         return true
  1347.  
  1348.     while (1) {
  1349.         var num = getRandom(cc[message].length)
  1350.         if (state.charAt(num) == "0")
  1351.             break
  1352.     }
  1353.     state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
  1354.     return false
  1355. }
  1356.  
  1357. function getRandom(max) {
  1358.     return Math.round((max - 1) * Math.random())
  1359. }
  1360.  
  1361. // -->
  1362. </SCRIPT>
  1363. </HEAD>
  1364. <BODY onLoad="firstBanner()">
  1365.  
  1366. __28
  1367. Text Slideshow
  1368. <HTML>
  1369. <!-- Created with the CoffeeCup HTML Editor++ --> 
  1370. <!--     http://www.coffeecup.com/editor      --> 
  1371. <HEAD>
  1372. <TITLE>AMAZING TEXT SLIDESHOW</TITLE>
  1373.  
  1374. <!--   DESCRIPTION:  This will make your text appear on the browser, line by line, and then conclude with an auto-jump to your website.
  1375.  
  1376.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1377. your webpage.  Then place the text you want to be displayed in
  1378. the area below starting with 'Hello'.  It will be after the 'var words' variable.  
  1379.  
  1380.     IMPORTANT:  This is a stand alone page.  Be sure to change the link below so that it will jump to your homepage.
  1381.  
  1382.     FUNCTIONALITY: Works in both Netscape & IE.
  1383. -->
  1384.  
  1385. <SCRIPT LANGUAGE="JavaScript">
  1386. //Modified by CoffeeCup Software 
  1387. //This code is Copyright (c) 1997 CoffeeCup Software 
  1388. //all rights reserved. License is granted to a single user to 
  1389. //reuse this code on a personal or business Web Site. 
  1390.  
  1391.  
  1392.      function makeArray() {
  1393.      this.length = makeArray.arguments.length;
  1394.              for (var i = 0; i < this.length; i++)
  1395.              this[i + 1] = makeArray.arguments[i];
  1396.      }
  1397.  
  1398.      function ccText (val1, val2, val3, val4) {
  1399.      this.curText = '';
  1400.      this.posit = 1;   
  1401.      this.word = val1;  
  1402.      this.length = val1.length;
  1403.      this.val3 = val3;
  1404.      this.val2 = val2;
  1405.      this.val4 = val4;
  1406.      this.print = ccText2;
  1407.      }
  1408.  
  1409.      function ccText2() {
  1410.              if (this.posit <= this.length) {
  1411.              this.curText = this.word[this.posit]
  1412.              outStringWord = ccU + this.val3 + this.curText + ccD;
  1413.              parent.draw.location = 'javascript:parent.outStringWord';
  1414.              this.posit++;
  1415.              }
  1416.              else {
  1417.              doneLoop = true;
  1418.              top.location = this.val4;
  1419.              }
  1420.      }
  1421.  
  1422.      function ccTextSlide() {
  1423.      if (!doneLoop) reDraw = setTimeout('ccTextSlide()', wordIntro.val2);
  1424.      wordIntro.print();
  1425.      }
  1426.  
  1427. <!--REPLACE THE CONTENT WITH YOUR OWN MESSAGE-->
  1428.  
  1429.      var words = new makeArray (' Hello ',' ...and welcome to CoffeeCup Software. ', ' This is our <U>TEXT SLIDESHOW...</U> ', ' Use this script to open up your website... ', ' Display important or urgent news... ', ' Finish it with an <A HREF=http://www.
  1430.      var wordIntro = new ccText (words, 2000, '<CENTER><FONT SIZE=5 FACE=VERDANA, ARIAL, Comic Sans MS>', 'http://www.coffeecup.com/');
  1431.  
  1432. <!--REPLACE THE ABOVE LINK WITH YOUR LINK-->
  1433.  
  1434. <!--CHANGB THE VARIABLES BELOW TO MANIPULATE THE SIZE, COLOR, AND FONT STYLE OF YOUR MESSAGE-->
  1435.  
  1436.      var ccU = '<HTML><BODY BGCOLOR="#000000" TEXT= "#000000"><CENTER><H3><FONT FACE=ARIAL SIZE=6 COLOR=#FFFFFF>The Amazing Text Slideshow</FONT></h3></CENTER><BR><BR><CENTER><TABLE WIDTH=100% BGCOLOR=#FFFFFF><TR><TD>';
  1437.      var ccD = '</TD></TR></table><br><br></HTML>';
  1438.      var ccB = ccU + ccD;
  1439.      var doneLoop = false;
  1440. </SCRIPT>
  1441. <FRAMESET onLoad="ccTextSlide()" ROWS="100%, *" FRAMEBORDER=NO BORDER=0>
  1442. <FRAME SCROLLING=AUTO SRC="javascript:parent.ccB" NAME="draw" MARGINWIDTH=3 MARGINHEIGHT=3>
  1443. </FRAMESET>
  1444. </HEAD>
  1445. </HTML>
  1446.  
  1447. __29
  1448. OnOff Screen
  1449. <!--   DESCRIPTION:  This will make your background colors
  1450. change upon buttonclick.
  1451.  
  1452.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1453. your webpage.  Then place the button in your webpage.  When
  1454. someone clicks it, the webpage background colors will blink.
  1455. To change the color of the blinking background, alter the 
  1456. color-hex tag in the 'function blinkOn' section.  This is the
  1457. very first section of the JavaScript. 
  1458.  
  1459. -->
  1460.  
  1461. <SCRIPT LANGUAGE="JavaScript">
  1462.  
  1463. //Modified by CoffeeCup Software 
  1464. //This code is Copyright (c) 1997 CoffeeCup Software 
  1465. //all rights reserved. License is granted to a single user to 
  1466. //reuse this code on a personal or business Web Site. 
  1467.  
  1468.  
  1469. function blinkOn(){
  1470.  
  1471.         theWin.document.bgColor = "#000000"
  1472.  
  1473.         nTimes++
  1474.  
  1475.         CCTimeOutID = window.setTimeout("blinkOff()",250);
  1476.  
  1477. }
  1478.  
  1479. function blinkOff(){
  1480.  
  1481.         theWin.document.bgColor = "FFFFFF"
  1482.  
  1483.         if (nTimes < 5)
  1484.  
  1485.                 CCTimeOutID = window.setTimeout("blinkOn()",250);
  1486.  
  1487.         else theWin.history.go(0)
  1488.  
  1489. }
  1490.  
  1491.  
  1492. function blinkCC(aWin)
  1493.  
  1494. {
  1495.  
  1496.         nTimes = 0
  1497.  
  1498.         theWin = aWin
  1499.  
  1500.         CCTimeOutID = window.setTimeout("blinkOn()",250);
  1501.  
  1502. }
  1503.  
  1504. </SCRIPT>
  1505.  
  1506.  
  1507. <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="On/Off Switch" onClick="blinkCC(self)"></FORM></CENTER>
  1508.  
  1509.  
  1510.  
  1511. __30
  1512. Horizontal Scroll - N
  1513.  
  1514. <!--   DESCRIPTION:  This will make your webpage slide to the right
  1515. automatically upon loading of the webpage.  
  1516.  
  1517.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1518. your webpage.  Place your message (WITHOUT ANY SPACES OR BREAKS)
  1519. in the page below the BODY tag.  Sentences must be continuous or
  1520. the script will not work.  (Example: Hi.....this....is....a...continuous...sentence..)
  1521. If you find the script stopping before it finishes your sentence, change the 
  1522. H<=4000 variable to a larger number. 
  1523.  
  1524.     FUNCTIONALITY: Works only in NETSCAPE.
  1525. -->
  1526.  
  1527. <HEAD>
  1528. <SCRIPT Language="JavaScript">
  1529.  
  1530. //Modified by CoffeeCup Software 
  1531. //This code is Copyright (c) 1997 CoffeeCup Software 
  1532. //all rights reserved. License is granted to a single user to 
  1533. //reuse this code on a personal or business Web Site. 
  1534.  
  1535. <!--
  1536. function coffeeit(){ 
  1537.         for (H=0; H<=3000; H++){         
  1538.                 parent.scroll(H,0)  
  1539.         }
  1540. }                                                     
  1541. //-->
  1542.  
  1543.  
  1544. </SCRIPT>
  1545. </HEAD>
  1546.  
  1547. <BODY OnLoad="coffeeit()" BGCOLOR=#000000 TEXT=#FFFFFF LINK=#FF0000 VLINK=#FF0000 ALINK=#FF0000>
  1548.  
  1549. <P><P><P><BR><BR><BR><P><P><P><BR><BR><BR><P><P><P><P><BR><BR><BR><P><P><P>
  1550.  
  1551. <FONT SIZE=5 FACE=ARIAL BLACK>...................................................................This..Javascript..allows..the..user..to..slide..through..your..webpage.....You..can..also..end..it..with..a..<A HREF="http://www.coffeecup.com/editor">link</A
  1552.  
  1553. __31
  1554. Bounce Status
  1555. <!--   DESCRIPTION:  This will make your text bounce in the
  1556. status bar of the browser.
  1557.  
  1558.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1559. your webpage.  Then place the text you want to be bounced in
  1560. the area that says, "YOUR MESSAGE HERE".  
  1561.  
  1562.     FUNCTIONALITY: Works in both Netscape & IE.
  1563. -->
  1564.  
  1565. <SCRIPT LANGUAGE="JavaScript">
  1566. //Modified by CoffeeCup Software 
  1567. //This code is Copyright (c) 1997 CoffeeCup Software 
  1568. //all rights reserved. License is granted to a single user to 
  1569. //reuse this code on a personal or business Web Site. 
  1570.  
  1571.  
  1572.  
  1573. var yourtext = "* YOUR MESSAGE HERE! *";
  1574. var wedge1="                        ";
  1575. var wedge2="                        ";
  1576. var message1=wedge1+yourtext+wedge2;
  1577. var dir = "lside";
  1578. var speed = 50;
  1579.  
  1580. function bouncey() {
  1581.  
  1582.     if (dir == "lside") {
  1583.         message2=message1.substring(2,message1.length)+"  ";
  1584.         window.status=message2;
  1585.         setTimeout("bouncey();",speed);
  1586.         message1=message2;
  1587.  
  1588.         if (message1.substring(0,1) == "*") {
  1589.             dir="rside";
  1590.         }
  1591.     }
  1592.  
  1593.     else {
  1594.         message2="  "+message1.substring(0,message1.length-2);
  1595.         window.status=message2;
  1596.         setTimeout("bouncey();",speed);
  1597.         message1=message2;
  1598.         if (message1.substring(message1.length-1,message1.length) == "*") { 
  1599.             dir="lside";
  1600.         }
  1601.     }
  1602. }
  1603.  
  1604. // -- End Hiding Here -->
  1605. </SCRIPT>
  1606.  
  1607. <body onLoad="bouncey()">
  1608.  
  1609. __32
  1610. Browser Jump
  1611. <!--   DESCRIPTION:  Recognizes what browser you are using
  1612. and jumps to that browser's correct page.
  1613.  
  1614.     INSTRUCTIONS:  This script is your opening webpage.  Then depending on which version of Netscape or IE the visitor is using, the page will then "jump" to it's respective page.  
  1615. -->
  1616.  
  1617.  
  1618. <SCRIPT LANGUAGE="JavaScript">
  1619. //Modified by CoffeeCup Software 
  1620. //This code is Copyright (c) 1997 CoffeeCup Software 
  1621. //all rights reserved. License is granted to a single user to 
  1622. //reuse this code on a personal or business Web Site. 
  1623. <!-- 
  1624. manu=navigator.appName;            
  1625. vers=navigator.appVersion;        
  1626. //MSIE 4.0+ BROWSERS WILL JUMP TO THIS LINK
  1627.     if (manu.indexOf("Microsoft")>=0 && vers.indexOf("4")>=0)
  1628.         {location.href="ie4.html";}
  1629. //MSIE 3.0 BROWSERS WILL JUMP TO THIS LINK
  1630.     else if (manu.indexOf("Microsoft")>=0 && vers.indexOf("3")>=0)
  1631.         {location.href="ie3.html";}
  1632. //Netscape 4.0+ BROWSERS WILL JUMP TO THIS LINK
  1633.     else if (manu.indexOf("Netscape")>=0 && vers.indexOf("4")>=0)
  1634.         {location.href="netscape4.html";}
  1635. //Netscape 3.0 BROWSERS WILL JUMP TO THIS LINK
  1636.     else if (manu.indexOf("Netscape")>=0 && vers.indexOf("3")>=0)
  1637.         {location.href="netscape3.html";}
  1638. //ALL OTHER BROWSERS WILL JUMP TO THIS LINK
  1639.     else
  1640.         {location.href="others.html";}
  1641. //-->
  1642. </SCRIPT>
  1643.  
  1644.  
  1645. __33
  1646. Click News
  1647.  
  1648. <!--   DESCRIPTION:  This will make a clickable scrolling 
  1649. banner on your webpage.  It closely resembles a news wire
  1650. out reading.  
  1651.  
  1652.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1653. your webpage.   Change the text by altering the values in 
  1654. cc [#] = "Your messages".  
  1655.  
  1656.     FUNCTIONALITY: Works in both Netscape & IE.
  1657. -->
  1658.  
  1659. <SCRIPT LANGUAGE="JavaScript">
  1660. //Modified by CoffeeCup Software 
  1661. //This code is Copyright (c) 1997 CoffeeCup Software 
  1662. //all rights reserved. License is granted to a single user to 
  1663. //reuse this code on a personal or business Web Site. 
  1664. <!--
  1665.  
  1666. var speed = 90
  1667. var pause = 1000 
  1668.  
  1669. var timerID = null
  1670. var wireRunning = false
  1671.  
  1672.  
  1673. var cc = new Array()
  1674.  
  1675.  
  1676. cc[0] = "Thanks for choosing CoffeeCup Software"
  1677. cc[1] = "We hope you enjoy this script"
  1678. cc[2] = "Visit our website at...      "
  1679. cc[3] = "http://www.coffeecup.com     "
  1680.  
  1681.  
  1682. var currentMessage = 0
  1683.  
  1684.  
  1685. var offset = 0
  1686.  
  1687.  
  1688. function stopWire() {
  1689.                 if (wireRunning)
  1690.                 
  1691.                 clearTimeout(timerID)
  1692.  
  1693.         
  1694.         wireRunning = false
  1695. }
  1696.  
  1697.  
  1698. function startWire() {
  1699.                 stopWire()
  1700.  
  1701.                 showWire()
  1702. }
  1703.  
  1704.  
  1705. function showWire() {
  1706.                 var text = cc[currentMessage]
  1707.  
  1708.                 if (offset < text.length) {
  1709.                                 if (text.charAt(offset) == " ")
  1710.                                                 offset++                        
  1711.  
  1712.                                 var partialMessage = text.substring(0, offset + 1) 
  1713.  
  1714.                 
  1715.                 document.wireForm.wireField.value = partialMessage
  1716.  
  1717.                                 offset++ 
  1718.                 timerID = setTimeout("showWire()", speed)
  1719.  
  1720.         
  1721.         wireRunning = true
  1722.         } else {
  1723.                offset = 0
  1724.  
  1725.                currentMessage++
  1726.  
  1727.                
  1728.                 if (currentMessage == cc.length)
  1729.                         
  1730.                         currentMessage = 0
  1731.  
  1732.               
  1733.                 timerID = setTimeout("showWire()", pause)
  1734.  
  1735.     
  1736.         wireRunning = true
  1737.         }
  1738. }
  1739.  
  1740. // -->
  1741. </SCRIPT>
  1742.  
  1743. <CENTER>
  1744. <FORM NAME="wireForm">
  1745. <INPUT TYPE="text" NAME="wireField" VALUE="...Click here for the News..." SIZE=40 onFocus="if (!wireRunning) { startWire() }">
  1746. </FORM>
  1747. </CENTER>
  1748.  
  1749. __34
  1750. Double List - N
  1751.  
  1752. <!--   DESCRIPTION:  This will give you two drop down lists that work together.
  1753.     INSTRUCTIONS:  Place this script in the HEAD tags of
  1754. your webpage.  Then place the appropriate Category and Sub-Category and a URL for each Sub-Category.
  1755.     FUNCTIONALITY:  Can only be used in Netscape.
  1756. -->
  1757.  
  1758. <SCRIPT LANGUAGE="JavaScript">
  1759.  
  1760. //Modified by CoffeeCup Software 
  1761. //This code is Copyright (c) 1997 CoffeeCup Software 
  1762. //all rights reserved. License is granted to a single user to 
  1763. //reuse this code on a personal or business Web Site. 
  1764.  
  1765.  
  1766.  
  1767.  
  1768. <!--
  1769. var maxLength = 10;
  1770.      website = new Array;
  1771.      website[0] = "BROWSERS:";
  1772.      website[1] = "E-MAIL CLIENTS:";
  1773.      website[2] = "COMPRESSION UTILITIES:";
  1774.      website[3] = "IMAGE VIEWERS:";
  1775.  
  1776.      var trueLength = website.length;
  1777.      var lst = website.length;
  1778.  
  1779.      url = new Array;
  1780.      url[0] = "http://www.texoma.net/mirror/tucows/files/msie302r.exe";
  1781.      url[1] = "http://www.texoma.net/mirror/tucows/files/Netscape/cb32e401.exe";
  1782.      url[2] = "http://www.texoma.net/mirror/tucows/files/op212e32.exe";
  1783.      url[3] = "http://www.texoma.net/mirror/tucows/files/traw3218.zip";
  1784.      url[4] = "http://www.texoma.net/mirror/tucows/files/ariadna-eng-1-2-b3.exe";
  1785.  
  1786.      ccselect = new Array;
  1787.      ccselect[0] = "BROWSERS:";
  1788.      ccselect[1] = "E-MAIL CLIENTS:";
  1789.      ccselect[2] = "COMPRESSION UTILITIES:";
  1790.      ccselect[3] = "IMAGE VIEWERS:";
  1791.  
  1792.      function changePage() 
  1793.      {
  1794.      menuNum = document.ccDoubleList.ccBitsyG.selectedIndex;
  1795.              if (menuNum == null){alert("Please select a category from the menu.");return;}
  1796.              else
  1797.              {
  1798.              i = document.ccDoubleList.ccDoubleZ.selectedIndex;
  1799.              window.location.href = url[i];
  1800.              }
  1801.      }
  1802.  
  1803.      function changeMenu()
  1804.      {
  1805.      website.length = 0;
  1806.      menuNum = document.ccDoubleList.ccBitsyG.selectedIndex;
  1807.              if (menuNum == null) return;
  1808.        
  1809.              if (menuNum == 0) 
  1810.              {
  1811.              website = new Array;
  1812.              website[0] = new Option("Internet Explorer");
  1813.              website[1] = new Option("Netscape");
  1814.              website[2] = new Option("Opera");
  1815.              website[3] = new Option("Trawler");
  1816.              website[4] = new Option("Ariadna");
  1817.              url = new Array;
  1818.              url[0] = "http://www.texoma.net/mirror/tucows/files/msie302r.exe";
  1819.              url[1] = "http://www.texoma.net/mirror/tucows/files/Netscape/cb32e401.exe";
  1820.              url[2] = "http://www.texoma.net/mirror/tucows/files/op212e32.exe";
  1821.              url[3] = "http://www.texoma.net/mirror/tucows/files/traw3218.zip";
  1822.              url[4] = "http://www.texoma.net/mirror/tucows/files/ariadna-eng-1-2-b3.exe";
  1823.              }
  1824.  
  1825.              if (menuNum == 1) 
  1826.              {
  1827.              website = new Array;
  1828.              website[0] = new Option("Becky Mail");
  1829.              website[1] = new Option("Calypso");
  1830.              website[2] = new Option("Mail Cat");
  1831.              website[3] = new Option("Eudora");
  1832.              website[4] = new Option("Pegasus");
  1833.              url = new Array;
  1834.              url[0] = "http://www.texoma.net/mirror/tucows/files/beck121.zip";
  1835.              url[1] = "http://www.texoma.net/mirror/tucows/files/calypso.exe";
  1836.              url[2] = "http://www.texoma.net/mirror/tucows/files/mc22_32.exe";
  1837.              url[3] = "http://www.texoma.net/mirror/tucows/files/eul302.exe";
  1838.              url[4] = "http://www.texoma.net/mirror/tucows/files/w32-254.exe";
  1839.              }
  1840.  
  1841.              if (menuNum == 2) 
  1842.              {
  1843.              website = new Array;
  1844.              website[0] = new Option("WinZip");
  1845.              website[1] = new Option("Pack It Up");
  1846.              website[2] = new Option("SuperZip");
  1847.              website[3] = new Option("TrayZip");
  1848.              website[4] = new Option("TurboZip");
  1849.              url = new Array;
  1850.              url[0] = "http://www.texoma.net/mirror/tucows/files/wzbeta32.exe";
  1851.              url[1] = "http://www.texoma.net/mirror/tucows/files/pak430.zip";
  1852.              url[2] = "http://www.texoma.net/mirror/tucows/files/superzip.exe";
  1853.              url[3] = "http://www.texoma.net/mirror/tucows/files/trayzip.exe";
  1854.              url[4] = "http://www.texoma.net/mirror/tucows/files/tzipte20.exe";
  1855.              }
  1856.  
  1857.              if (menuNum == 3) 
  1858.              {
  1859.              website = new Array;
  1860.              website[0] = new Option("ACD See");
  1861.              website[1] = new Option("AllVue");
  1862.              website[2] = new Option("AniMagic");
  1863.              website[3] = new Option("CompuPic");
  1864.              website[4] = new Option("Firehand Ember");
  1865.              url = new Array;
  1866.              url[0] = "http://www.texoma.net/mirror/tucows/files/acdc3221.exe";
  1867.              url[1] = "http://www.texoma.net/mirror/tucows/files/allvu210.zip";
  1868.              url[2] = "http://www.texoma.net/mirror/tucows/files/animag32.zip";
  1869.              url[3] = "http://www.texoma.net/mirror/tucows/files/cpic32.exe";
  1870.              url[4] = "http://www.texoma.net/mirror/tucows/files/EmberSet.exe";
  1871.              }
  1872.  
  1873.      tot = website.length;
  1874.              for (i = lst; i > 0; i--) 
  1875.              { document.ccDoubleList.ccDoubleZ.options[i] = null; }
  1876.              for (i = 0; i < tot; i++)
  1877.              { document.ccDoubleList.ccDoubleZ.options[i] = website[i]; }
  1878.              document.ccDoubleList.ccDoubleZ.options[0].selected = true;
  1879.      lst = website.length;
  1880.      }
  1881. // -->
  1882. </SCRIPT>
  1883. </HEAD>
  1884. <BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF VLINK=#800080>
  1885. <SCRIPT LANGUAGE="JavaScript"><!--
  1886. with (document) {
  1887.      writeln('<CENTER>');
  1888.      writeln('<TABLE BORDER=0 BGCOLOR=#8000FF CELLPADDING=3 CELLSPACING=0>');
  1889.      writeln('<TR><TD COLSPAN=3><FORM NAME="ccDoubleList">');
  1890.      writeln('<CENTER><FONT SIZE=4 COLOR=#FFFFFF FACE=ARIAL>');
  1891.      writeln('<B>Shareware For Download</B></FONT></CENTER>');
  1892.      writeln('</TD></TR><TR><TD ALIGN=LEFT>');
  1893.      writeln('<FONT SIZE=3 COLOR=#FFFFFF FACE=ARIAL><B>Category</B></FONT><BR>');
  1894.      writeln('<SELECT NAME="ccBitsyG" onChange="changeMenu(this.form)">');
  1895.      tot = ccselect.length; 
  1896.          for (i = 0; i < tot; i++)
  1897.          writeln("<OPTION>" +ccselect[i]);
  1898.      writeln("</SELECT>");
  1899.      writeln('</TD><TD>');
  1900.      writeln('<FONT SIZE=3 COLOR=#FFFFFF FACE=ARIAL><B>Site Menu</B></FONT><BR>');
  1901.      writeln('<SELECT NAME="ccDoubleZ">');
  1902.          for (i = 0; i < maxLength; i++)
  1903.          writeln("<OPTION>" +website[i]);
  1904.          writeln("</SELECT>");
  1905.          for (i = maxLength; i > trueLength; i--) 
  1906.          { ccDoubleList.ccDoubleZ.options[i] = null; }
  1907.      writeln('</TD><TD VALIGN=BOTTOM><A HREF = "javascript:changePage();">');
  1908.      writeln('<IMG BORDER=0 SRC="internal-gopher-menu"></A><FONT SIZE=2 COLOR=#FFFFFF FACE=ARIAL><B>GO!</B></FONT>');
  1909.      writeln('</TD></TR>');
  1910.      changeMenu();
  1911.      writeln('</FORM>');
  1912.      writeln('</TABLE><P><BR><P>');
  1913.      writeln('</CENTER>');
  1914.      }
  1915.  
  1916. // -->
  1917. </SCRIPT>
  1918.  
  1919. __35
  1920. Good Bye Message
  1921.  
  1922. <!--   DESCRIPTION:  This will cause an elert message before your visitor leaves (OR reloads) your page. 
  1923.     INSTRUCTIONS:  Place this tag where your BODY tag is.  Make changes to attributes (TEXT, LINK, VLINK, BGCOLOR, etc.) as necessary.
  1924.     FUNCTIONALITY: Works in both Netscape and IE.
  1925.  
  1926. //Modified by CoffeeCup Software 
  1927. //This code is Copyright (c) 1997 CoffeeCup Software 
  1928. //all rights reserved. License is granted to a single user to 
  1929. //reuse this code on a personal or business Web Site. 
  1930. -->
  1931.  
  1932.  
  1933. <BODY onUnload="window.alert('CoffeeCup Alert: Remember to visit weekly for changes and updates!!!')">
  1934.  
  1935.  
  1936. </BODY>
  1937.  
  1938. __36
  1939. Current Date and Time
  1940. <!--Start of JavaScript Place after the closing TITLE tag-->
  1941. <!--   DESCRIPTION:  This will create a header on the top 
  1942. right side of your webpage with the current date and time.  
  1943.  
  1944.     INSTRUCTIONS:  Place this script in between the HEAD
  1945. tags of your webpage.   Change the size and color of the text
  1946. by altering the values found in the next to last line of the
  1947. JavaScript.  
  1948.  
  1949.     FUNCTIONALITY: Works in both Netscape & IE.
  1950. -->
  1951.  
  1952. <SCRIPT LANGUAGE="JavaScript">
  1953. //Modified by CoffeeCup Software 
  1954. //This code is Copyright (c) 1997 CoffeeCup Software 
  1955. //all rights reserved. License is granted to a single user to 
  1956. //reuse this code on a personal or business Web Site. 
  1957.  
  1958.         var now = new Date();
  1959.         var hours = now.getHours();
  1960.         var minutes = now.getMinutes();
  1961.         var timeValue = "" + ((hours >12) ? hours -12 :hours)
  1962.         timeValue += ((minutes < 10) ? ":0" : ":") + minutes
  1963.         timeValue += (hours >= 12) ? " P.M." : " A.M."
  1964.         timerRunning = true;
  1965.  
  1966.  
  1967.      mydate = new Date();
  1968.      myday = mydate.getDay();
  1969.      mymonth = mydate.getMonth();
  1970.      myweekday= mydate.getDate();
  1971.      weekday= myweekday;
  1972.      myyear= mydate.getYear();
  1973.      year = myyear
  1974.  
  1975.      if(myday == 0)
  1976.              day = " Sunday, "      
  1977.  
  1978.      else if(myday == 1)
  1979.            day = " Monday, "
  1980.  
  1981.      else if(myday == 2)
  1982.              day = " Tuesday, "   
  1983.  
  1984.      else if(myday == 3)
  1985.              day = " Wednesday, "   
  1986.  
  1987.      else if(myday == 4)
  1988.              day = " Thursday, "
  1989.  
  1990.      else if(myday == 5)
  1991.              day = " Friday, "
  1992.  
  1993.      else if(myday == 6)
  1994.              day = " Saturday, "
  1995.  
  1996.      if(mymonth == 0)
  1997.               month = "January "
  1998.  
  1999.      else if(mymonth ==1)
  2000.               month = "February "
  2001.  
  2002.      else if(mymonth ==2)
  2003.              month = "March "
  2004.  
  2005.      else if(mymonth ==3)
  2006.             month = "April "
  2007.  
  2008.      else if(mymonth ==4)
  2009.               month = "May "
  2010.  
  2011.      else if(mymonth ==5)
  2012.               month = "June "
  2013.  
  2014.      else if(mymonth ==6)
  2015.               month = "July "
  2016.  
  2017.      else if(mymonth ==7)
  2018.             month = "August "
  2019.  
  2020.      else if(mymonth ==8)
  2021.            month = "September "
  2022.  
  2023.      else if(mymonth ==9)
  2024.           month = "October "
  2025.  
  2026.      else if(mymonth ==10)
  2027.           month = "November "
  2028.  
  2029.      else if(mymonth ==11)
  2030.           month = "December"
  2031.  
  2032.      document.write("<B><P ALIGN=RIGHT><FONT SIZE=-1 FACE=VERDANA,ARIAL>" + timeValue + " | " +day + month);
  2033.      document.write(myweekday+","+ " 19" + year + "</FONT></B><BR><HR WIDTH=300 ALIGN=RIGHT><P>");
  2034.  
  2035. </SCRIPT>
  2036. <!--This is the end of the JavaScript Make sure this script is between the HEAD tags-->
  2037.  
  2038. __37
  2039. Image Form
  2040.  
  2041.  
  2042. <!--Start of JavaScript Place after the closing TITLE tag-->
  2043. <!--   DESCRIPTION:  This will create a form where you can have
  2044. images as the SUBMIT and RESET buttons.  The Reset button will
  2045. not work in IE.  
  2046.  
  2047.     INSTRUCTIONS:  Place part of this script in between the HEAD
  2048. tags and the other part in the BODY of your webpage.   Change the 
  2049. size and color of the text to suit your liking.  The FORM is designed
  2050. to work off of the users e-mail program but you can change the ACTION 
  2051. in the form to reflect a CGI script such as FormMail.  Keep in mind you
  2052. will need to rename the submitbutton.gif and the resetbutton.gif to 
  2053. the images you will be using in your webpage.
  2054.  
  2055.     FUNCTIONALITY: Does NOT workin both Netscape & IE. IE will 
  2056. not reset the data when you click on the reset button.
  2057. -->
  2058.  
  2059. <SCRIPT LANGUAGE="JavaScript">
  2060. //Modified by CoffeeCup Software 
  2061. //This code is Copyright (c) 1997 CoffeeCup Software 
  2062. //all rights reserved. License is granted to a single user to 
  2063. //reuse this code on a personal or business Web Site. 
  2064.  
  2065. function proc() {    
  2066.  
  2067.     document.forms[0].reset()
  2068.  
  2069. }
  2070.  
  2071.  
  2072.  
  2073. function announce() {
  2074.  
  2075.     alert('Submitting your information now...')
  2076.  
  2077. }
  2078.  
  2079.  
  2080.  
  2081. function respond() {
  2082.  
  2083.     alert('Your data has been erased.')
  2084.  
  2085. }
  2086.  
  2087. </SCRIPT>
  2088.  
  2089. </HEAD>
  2090.  
  2091.  
  2092.  
  2093. <BODY>
  2094.  
  2095.  
  2096.  
  2097. <FORM METHOD="POST" ACTION="mailto:you@yourdomain.com" onSubmit="announce()" onReset="respond()">
  2098.  
  2099. <FONT FACE="VERDANA,ARIAL" SIZE=4>
  2100. <P>
  2101. <DT><B>Name:</B> 
  2102. <DD><INPUT TYPEe="text" SIZE="20" NAME="Name">
  2103. <P>
  2104. <DT><B>E-Mail Address:</B> 
  2105. <DD><INPUT TYPEe="text" SIZE="20" NAME="E-Mail">
  2106. <P>
  2107. <DT><B>State:</B> 
  2108. <DD><INPUT TYPEe="text" SIZE="20" NAME="State">
  2109.  
  2110.    
  2111. <P>
  2112. <INPUT TYPE="image" SRC="submitbutton.gif" BORDER=0>
  2113.  
  2114. <A HREF="#form" onClick="proc()">
  2115. <IMG SRC="resetbutton.gif" BORDER=0></A>
  2116.  
  2117.  
  2118. </FORM>
  2119.  
  2120. <P><BR>
  2121.  
  2122. __38
  2123. Password
  2124. <HEAD>
  2125.  
  2126. <!--Start of JavaScript Place after the closing TITLE tag-->
  2127. <!--   DESCRIPTION:  This will require the user to put in a 
  2128. password before they can enter your website
  2129.  
  2130.     INSTRUCTIONS:  Place this script in between the HEAD
  2131. tags of your webpage.  
  2132.  
  2133.     FUNCTIONALITY: Works in both Netscape & IE.
  2134.  
  2135.     PASSWORD:  DELETE THIS Paragraph explaining the Password
  2136. information before placing your site on the Internet.  Else, 
  2137. someone else may be able to crack your code.  To alter the 
  2138. password you must go to the paragraph below with ccup2 as the 
  2139. starting word.  Notice the word substing, followed by a pair 
  2140. of numbers.  The second number in the pair is the number associated
  2141. with the letter in the AlphaNumeric table below.  For example, 2 is
  2142. associated with the lower case "b".  The substring would then read
  2143. 1,2, not just 2.  Use the pre-existing example as your guide.
  2144. -->
  2145.  
  2146. <SCRIPT LANGUAGE="JavaScript">
  2147. //Modified by CoffeeCup Software 
  2148. //This code is Copyright (c) 1997 CoffeeCup Software 
  2149. //all rights reserved. License is granted to a single user to 
  2150. //reuse this code on a personal or business Web Site. 
  2151.  
  2152.  
  2153.  
  2154.  
  2155. //This is the AlphaNumeric table to associate your password
  2156. //and your destination URL. 
  2157.  
  2158.  
  2159. var ccup1="abcdefghijklmnopqrstuvwxyz~_.-:#/"
  2160.  
  2161. +"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890@!%^&*";
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167. //This paragraph is your password
  2168.  
  2169.  
  2170. ccup2=ccup1.substring(35,36)+ccup1.substring(14,15)+ccup1.substring(5,6)+ccup1.substring(5,6)+ccup1.substring(4,5)+ccup1.substring(4,5)+ccup1.substring(35,36)+ccup1.substring(20,21)+ccup1.substring(15,16)+"";
  2171.  
  2172.  
  2173. //This paragraph is your destination URL
  2174.  
  2175.  
  2176. ccup3="http://www.coffeecup.com/"+ccup1.substring(8,9)+ccup1.substring(13,14)+ccup1.substring(3,4)+ccup1.substring(4,5)+ccup1.substring(23,24)+ccup1.substring(28,29)+ccup1.substring(7,8)+ccup1.substring(19,20)+ccup1.substring(12,13)+ccup1.substring(11,12)
  2177.  
  2178.  
  2179.  
  2180. var name = prompt("Enter your User Password:", "For this example use the word CoffeeCup")
  2181.  
  2182. if (name ==ccup2) {
  2183.  
  2184.  
  2185.  
  2186.         (confirm("Access to this site is granted. Click  [ OK ]  to Proceed.")) 
  2187.  
  2188.    location.href=ccup3;
  2189.  
  2190.    }
  2191.  
  2192. else{  alert("INCORRECT PASSWORD.  The password: " + name + " is not Registered to view this site.");
  2193.  
  2194.    history.back();
  2195.  
  2196.    }
  2197.  
  2198. </SCRIPT>
  2199.  
  2200. </HEAD>
  2201.  
  2202. __39
  2203. Random Sound
  2204. <!--Start of JavaScript-->
  2205. <!--   DESCRIPTION:  This will play a random MIDI file or WAV
  2206. file on the users system, pending if their system can handle 
  2207. sound files.
  2208.  
  2209.     INSTRUCTIONS:  Place this script where you want the song
  2210. title to be displayed on your webpage. Change the location of the 
  2211. MID or WAV file to reflect your own site, also change the title
  2212. of the song. 
  2213.  
  2214.     FUNCTIONALITY: Works in both Netscape & IE.
  2215. -->
  2216.  
  2217. <SCRIPT>
  2218. //Modified by CoffeeCup Software 
  2219. //This code is Copyright (c) 1997 CoffeeCup Software 
  2220. //all rights reserved. License is granted to a single user to 
  2221. //reuse this code on a personal or business Web Site. 
  2222.  
  2223.  
  2224. <!-- 
  2225.  
  2226.     var midi = ""
  2227.  
  2228.     var txt = ""
  2229.  
  2230.     var nummidis = 5
  2231.  
  2232.     day = new Date() 
  2233.  
  2234.  
  2235.  
  2236.     seed = day.getTime()
  2237.  
  2238.  
  2239.  
  2240.     ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*nummidis
  2241.  
  2242.     + 1,10)
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.     if (ran == (1))
  2251.  
  2252.  
  2253.  
  2254.     {midi=("http://www.zeke213.com/sounds/promise.mid");
  2255.  
  2256.  
  2257.  
  2258.     txt=("Promise")}
  2259.  
  2260.  
  2261.  
  2262.     if (ran == (2))
  2263.  
  2264.  
  2265.  
  2266.     {midi=("http://www.zeke213.com/sounds/justagrl.mid");
  2267.  
  2268.  
  2269.  
  2270.     txt=("I'm Just A Girl")}
  2271.  
  2272.  
  2273.  
  2274.     if (ran == (3))
  2275.  
  2276.  
  2277.  
  2278.     {midi=("http://members.aol.com/zeke213ws/sounds/simpsons.mid");
  2279.  
  2280.  
  2281.  
  2282.     txt=("The Simpsons")}
  2283.  
  2284.  
  2285.  
  2286.     if (ran == (4))
  2287.  
  2288.  
  2289.  
  2290.     {midi=("http://members.aol.com/zeke213ws/sounds/ymca.mid");
  2291.  
  2292.  
  2293.  
  2294.     txt=("Y.M.C.A.")}
  2295.  
  2296.  
  2297.  
  2298.     if (ran == (5))
  2299.  
  2300.  
  2301.  
  2302.     {midi=("http://members.aol.com/zeke213ws/sounds/coca.mid");
  2303.  
  2304.  
  2305.  
  2306.     txt=("Always Coca~Cola")}
  2307.  
  2308.  
  2309.  
  2310.    
  2311.  
  2312. document.write('<CENTER><EMBED SRC="' + midi + '" AUTOSTART=true HIDDEN=true VOLUME=100  loop=true></embed><br><b><FONT FACE="VERDANA,ARIAL" SIZE=4>You are now listening to <FONT COLOR=FF0000>"' + txt + '"</FONT></FONT></B></CENTER>')  
  2313. //-->
  2314.  
  2315. </SCRIPT>
  2316.  
  2317. __40
  2318. Current Time
  2319. <!--Start of JavaScript Place after the closing TITLE tag-->
  2320. <!--   DESCRIPTION:  This will place the current time in the 
  2321. Status Window of your browser.  
  2322.  
  2323.     INSTRUCTIONS:  Place this script in between the HEAD
  2324. tags of your webpage.  
  2325.  
  2326.     FUNCTIONALITY: Works in both Netscape & IE.
  2327. -->
  2328.  
  2329. <SCRIPT LANGUAGE="JavaScript">
  2330. //Modified by CoffeeCup Software 
  2331. //This code is Copyright (c) 1997 CoffeeCup Software 
  2332. //all rights reserved. License is granted to a single user to 
  2333. //reuse this code on a personal or business Web Site. 
  2334.  
  2335. var timerID = null;
  2336. var timerRunning = false;
  2337.  
  2338. function stopclock (){
  2339.         if(timerRunning)
  2340.                 clearTimeout(timerID);
  2341.         timerRunning = false;
  2342. }
  2343.  
  2344. function showtime () {
  2345.         var now = new Date();
  2346.         var hours = now.getHours();
  2347.         var minutes = now.getMinutes();
  2348.         var seconds = now.getSeconds()
  2349.         var timeValue = "" + ((hours >12) ? hours -12 :hours)
  2350.         timeValue += ((minutes < 10) ? ":0" : ":") + minutes
  2351.         timeValue += ((seconds < 10) ? ":0" : ":") + seconds
  2352.         timeValue += (hours >= 12) ? " P.M." : " A.M."
  2353.         window.status = timeValue;
  2354.         timerID = setTimeout("showtime()",1000);
  2355.         timerRunning = true;
  2356. }
  2357.  
  2358. function startclock () {
  2359.         stopclock();
  2360.         showtime();
  2361. }
  2362.  
  2363.  
  2364. </SCRIPT>
  2365.  
  2366. <!--This is the end of the JavaScript Make sure this script is between the HEAD tags-->
  2367.  
  2368. <BODY onLoad="showtime()">
  2369.  
  2370. __41
  2371. Background Color
  2372. <!-- Start of Change BackGround Color-->
  2373. <!--   DESCRIPTION:  This will allow the user to change the background color of your page.  Neat trick.
  2374.  
  2375.     INSTRUCTIONS:  Place this script anywhere in the <BODY> tag.  
  2376.  
  2377.     FUNCTIONALITY: Works in both Netscape and IE.
  2378. -->
  2379. <!--
  2380. //Modified by CoffeeCup Software 
  2381. //This code is Copyright (c) 1998 CoffeeCup Software 
  2382. //All rights reserved. License is granted to a single user to 
  2383. //reuse this code on a personal or business Web Site. 
  2384. // -->
  2385. <CENTER>
  2386. <FORM>
  2387. <FONT FACE="VERDANA, ARIAL"><B>Choose a background color:</B></FONT> 
  2388. <SELECT name="ccGround" size="1" onChange=(document.bgColor=ccGround.options[ccGround.selectedIndex].value)>
  2389. <OPTION value="408080" target="1" selected>Cool Green
  2390. <OPTION value="C0C0C0" target="1">Cool Grey
  2391. <OPTION value="000000" target="1">Black
  2392. <OPTION value="730200" target="1">DarkRed
  2393. <OPTION value="231800" target="1">Brown
  2394. <OPTION value="044302" target="1">DarkGreen
  2395. <OPTION value="0D09A3" target="1">Dark Blue
  2396. <OPTION value="808040" target="1">Avocado
  2397. <OPTION value="800080" target="1">Purple
  2398. <OPTION value="444444" target="1">Gray
  2399. <OPTION value="FF0400" target="1">Red
  2400. <OPTION value="EFE800" target="1">Yellow
  2401. <OPTION value="05EF00" target="1">Green
  2402. <OPTION value="0206FF" target="1">Blue
  2403. <OPTION value="AE08EF" target="1">Violet
  2404. <OPTION value="FF8C8A" target="1">Mauve
  2405. <OPTION value="FF80FF" target="1">Pink
  2406. <OPTION value="FFCCCC" target="1">Peach
  2407. <OPTION value="FFCC99" target="1">Orange
  2408. <OPTION value="000080" target="1">Darker Blue
  2409. <OPTION value="808080" target="1">Dark Grey
  2410. <OPTION value="D5CCBB" target="1">Tan
  2411. <OPTION value="DDDDDD" target="1">LightGray
  2412. <OPTION value="FBFF73" target="1">Light Yellow
  2413. <OPTION value="7CFF7D" target="1">LightGreen
  2414. <OPTION value="A6BEFF" target="1">Light Blue
  2415. <OPTION value="FFFFFF" target="1">White
  2416. </SELECT></FORM></CENTER>
  2417. <!-- Start of Change BackGround Color-->
  2418.  
  2419. __42
  2420. Click Jump Link Box
  2421. <!-- ClickJump LinkBox      Change the VALUES to your links! -->
  2422. <!-- When the User selects an item, it will automatically jump to that link. -->
  2423. <CENTER>
  2424. <FONT FACE="VERDANA, ARIAL">Select an item:</FONT><BR>
  2425. <FORM>
  2426. <SELECT NAME="clicklist" onChange="top.location.href=this.form.clicklist.options[this.form.clicklist.selectedIndex].value">
  2427. <OPTION>
  2428. <OPTION SELECTED VALUE="http://www.coffeecup.com/editor">CoffeeCup Editor
  2429. <OPTION VALUE="http://www.netscape.com">Netscape
  2430. <OPTION VALUE="http://www.microsoft.com">Microsoft
  2431. <OPTION VALUE="http://www.infoseek.com">Infoseek
  2432. </SELECT><P>
  2433. </FORM>
  2434. </CENTER>
  2435.  
  2436. __43
  2437. Countdown
  2438. <!--Start of CountDown JavaScript-->
  2439. <!--   DESCRIPTION:  This countdown the days, hours, and minutes 
  2440. to any given date.
  2441.  
  2442.     INSTRUCTIONS:  Place this script where you want the time 
  2443. remaining to be displayed.  Change the date in ccDayThen to the 
  2444. date you are counting down to.
  2445.  
  2446.     FUNCTIONALITY: Works in both Netscape & IE.
  2447. -->
  2448. <SCRIPT LANGUAGE="JAVASCRIPT">
  2449. //Modified by CoffeeCup Software 
  2450. //This code is Copyright (c) 1998 CoffeeCup Software 
  2451. //All rights reserved. License is granted to a single user to 
  2452. //reuse this code on a personal or business Web Site. 
  2453.  
  2454. ccDayNow = new Date();
  2455. ccDayThen = new Date("December 31, 1999")
  2456. msPerDay = 24 * 60 * 60 * 1000 ;
  2457. timeLeft = (ccDayThen.getTime() - ccDayNow.getTime());
  2458. cc_daysLeft = timeLeft / msPerDay;
  2459. daysLeft = Math.floor(cc_daysLeft);
  2460. cc_hrsLeft = (cc_daysLeft - daysLeft)*24;
  2461. hrsLeft = Math.floor(cc_hrsLeft);
  2462. minsLeft = Math.floor((cc_hrsLeft - hrsLeft)*60);
  2463. document.write( "There are "+daysLeft+" days, "+hrsLeft+" hours and "+minsLeft+" minuites left until the year 2000.");
  2464. </SCRIPT>
  2465.  
  2466. <!--This is the end of the CountDown JavaScript, make sure this script is between the BODY tags-->
  2467.         
  2468. __44
  2469. Hello Visitor
  2470. <!-- Start of Hello Visitor JavaScript-->
  2471. <!--   DESCRIPTION:  This will ask the user for his/her name, then tell them WELCOME.
  2472.  
  2473.     INSTRUCTIONS:  Place this script below the BODY tag, before you start the content of your page.  
  2474.  
  2475.     FUNCTIONALITY: Works in both Netscape and IE.
  2476. -->
  2477. <SCRIPT LANGUAGE="JavaScript">
  2478. //Modified by CoffeeCup Software 
  2479. //This code is Copyright (c) 1998 CoffeeCup Software 
  2480. //All rights reserved. License is granted to a single user to 
  2481. //reuse this code on a personal or business Web Site. 
  2482. <!-- 
  2483. {
  2484. var name = prompt ('Please tell us your name','');
  2485. var color = prompt ('Please tell us your favorite color','');
  2486. document.write("<CENTER><FONT FACE=ARIAdL,VERDANA COLOR="+color+" SIZE=5>Welcome to our site "+name+".</FONT><HR NOSHADE WIDTH=450></CENTER><P>")
  2487. }
  2488. //-->
  2489. </SCRIPT>
  2490. <!-- End of Hello Visitor JavaScript -->
  2491.  
  2492. __45
  2493. How Long
  2494. <!--Start of How Long JavaScript -->
  2495. <!--   DESCRIPTION:  This will pop up a message and tell the user
  2496. how long they have been on your site.
  2497.  
  2498.     INSTRUCTIONS:  Place the top part of the script above the HEAD tag.
  2499. Place the bottom part with the link in the body of your webpage.  Make sure 
  2500. you include the onLoad function in your BODY tag.
  2501.  
  2502. DO NOT PLACE TWO BODY TAGS ON YOUR PAGE.
  2503.  
  2504.     FUNCTIONALITY: Works in both Netscape & IE.
  2505. -->
  2506. <SCRIPT LANGUAGE="JAVASCRIPT">
  2507. //Modified by CoffeeCup Software 
  2508. //This code is Copyright (c) 1998 CoffeeCup Software 
  2509. //All rights reserved. License is granted to a single user to 
  2510. //reuse this code on a personal or business Web Site.
  2511.  function time_arrived() {
  2512.     enter=new Date();
  2513.  }
  2514.  function time_here() {
  2515.     exit=new Date();
  2516.     time=(exit.getTime()-enter.getTime())/1000;
  2517.     time=Math.round(time);
  2518.     alert ("You have been here for " + time + " seconds.  Getting tired?")
  2519.  }
  2520.  </SCRIPT>
  2521.  <!-- This should be above the HEAD tag -->
  2522.  
  2523.  
  2524. <BODY onLoad='time_arrived()'>
  2525. <CENTER>
  2526. <FORM>
  2527. <INPUT type="button" name="timehere" value="You have been here for..." onClick='time_here()'>
  2528. </FORM>
  2529. </CENTER>
  2530. <!--End of How Long JavaScript -->
  2531.  
  2532. __46
  2533. Play Wav on Link -N
  2534. <!-- Start of Play WAV on Link Click -->
  2535. <!--   DESCRIPTION:  This will play a .wav file when the visitor clicks 
  2536. on an Image or Text Link.
  2537.  
  2538.     INSTRUCTIONS:  Place this script in the HEAD tags of your 
  2539. webpage.   Change the name of 'wavefile.wav' to reflect actual .wav 
  2540. files, be sure that the wav files are in the same directory as 
  2541. the .html file.  
  2542.  
  2543.     FUNCTIONALITY: Works only in Netscape 3.0+.
  2544. -->
  2545. <SCRIPT LANGUAGE="JavaScript">
  2546. //Modified by CoffeeCup Software 
  2547. //This code is Copyright (c) 1998 CoffeeCup Software 
  2548. //All rights reserved. License is granted to a single user to 
  2549. //reuse this code on a personal or business Web Site. 
  2550. <!--
  2551. function playWAV(name) {
  2552.     if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3 &&
  2553.         navigator.appVersion.indexOf("68k") == -1 && navigator.javaEnabled() &&
  2554.         document.embeds[name] != null && document.embeds[name].IsReady()) {
  2555.     document.embeds[name].play(false);
  2556.     }
  2557. }
  2558. onerror = null 
  2559. //-->
  2560. </SCRIPT>
  2561.  
  2562. </HEAD>
  2563. <BODY>
  2564.  
  2565. <EMBED SRC="wavefile.wav" NAME="sound1" HIDDEN=TRUE LOOP=FALSE AUTOSTART = FALSE MASTERSOUND>
  2566.  
  2567. <EMBED SRC = "wavefile.wav" NAME="sound2" HIDDEN=TRUE LOOP=FALSE AUTOSTART=FALSE MASTERSOUND>
  2568.  
  2569. <A HREF="http://www.coffeecup.com" onClick="playWAV('sound1')">
  2570. This works on Text and Image Links !!!</A>
  2571.  
  2572. <P>
  2573.  
  2574. <A HREF="http://www.coffeecup.com" onClick="playWAV('sound2')"><IMG SRC="image.jpg" BORDER=0></A>
  2575.  
  2576. <!-- End of Play WAV on Link Click -->
  2577.  
  2578. __47
  2579. Play WAV on Load -N
  2580. <!-- Start of Play WAV on Page Load -->
  2581. <!--   DESCRIPTION:  This will play a .wav file when the visitor opens your page.
  2582.  
  2583.     INSTRUCTIONS:  Place this script in the HEAD tags of
  2584. your webpage.   Change the name of the 'wavefile.wav' to reflect an actual .wav 
  2585. file, be sure that the wav file is in the same directory as the .html file.  
  2586.  
  2587.     FUNCTIONALITY: Works only in Netscape 3.0+.
  2588. -->
  2589. <SCRIPT LANGUAGE="JavaScript">
  2590. //Modified by CoffeeCup Software 
  2591. //This code is Copyright (c) 1998 CoffeeCup Software 
  2592. //All rights reserved. License is granted to a single user to 
  2593. //reuse this code on a personal or business Web Site. 
  2594. <!--
  2595. function playWAV(name) {
  2596.     if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3 &&
  2597.         navigator.appVersion.indexOf("68k") == -1 && navigator.javaEnabled() &&
  2598.         document.embeds[name] != null && document.embeds[name].IsReady()) {
  2599.     document.embeds[name].play(false);
  2600.     }
  2601. }
  2602. onerror = null 
  2603. //-->
  2604. </SCRIPT>
  2605.  
  2606. <BODY onLoad=playWAV('sound1')>
  2607.  
  2608. <EMBED SRC="wavefile.wav" NAME="sound1" HIDDEN=TRUE LOOP=FALSE AUTOSTART=FALSE MASTERSOUND>
  2609.  
  2610. <!-- End of Play WAV on Page Load -->
  2611.  
  2612. __48
  2613. Pop Up on MouseOver
  2614. <!--Start of PopUp on MouseOver-->
  2615. <!--   DESCRIPTION:  This will pop up a new browser window when you mouseover the link.  In this example the link is an image, but you can change it to a text link.
  2616.  
  2617.     INSTRUCTIONS:  Place this top part of the script above the HEAD tag.
  2618. Place the bottom part with the link in the body of your webpage.  CHANGE the 
  2619. image.gif to reflect your image, CHANGE page2.html to your second .html 
  2620. page, CHANGE the WIDTH and HEIGHT in the script to reflect the desired
  2621. size you
  2622.  
  2623.     FUNCTIONALITY: Works in both Netscape & IE.
  2624. -->
  2625. <SCRIPT LANGUAGE="JAVASCRIPT">
  2626. //Modified by CoffeeCup Software 
  2627. //This code is Copyright (c) 1998 CoffeeCup Software 
  2628. //All rights reserved. License is granted to a single user to 
  2629. //reuse this code on a personal or business Web Site.
  2630.   var ccpop_window = null;
  2631.   function ccpop(status,url) {
  2632.      if(status != 0) {
  2633.         if(ccpop != null) ccpop.focus(); 
  2634.         else { 
  2635.            var ccpop = open(url, "ccpop", "WIDTH=350,HEIGHT=175");
  2636.            ccpop_window = ccpop;
  2637.         }
  2638.      } else {
  2639.         if(ccpop_window != null) ccpop_window.close();
  2640.      }
  2641.   }
  2642. </SCRIPT>
  2643. <!--  Be sure this top part is between the HEAD tags -->
  2644.  
  2645. <!-- Be sure this bottom part is between the BODY tags -->
  2646. <CENTER>
  2647. <A HREF="" onMouseover="ccpop(1,'page2.html')" onMouseout="ccpop(0)"><IMG SRC="image.gif"  BORDER=0></A></CENTER>
  2648. <!--END of PopUp on MouseOver-->
  2649.  
  2650. __49
  2651. Preload Images
  2652. <!-- Start of PRELOAD Image Script -->
  2653. <!--   DESCRIPTION:  This will preload images in the webpage.
  2654.  
  2655.     INSTRUCTIONS:  Place this script below your content,
  2656. just above the close BODY tag.
  2657.  
  2658.     FUNCTIONALITY: Works in both Netscape and IE.
  2659. -->
  2660. <SCRIPT LANGUAGE="JavaScript">
  2661. //Modified by CoffeeCup Software 
  2662. //This code is Copyright (c) 1998 CoffeeCup Software 
  2663. //All rights reserved. License is granted to a single user to 
  2664. //reuse this code on a personal or business Web Site. 
  2665.  
  2666. <!--
  2667. ccImageSrc = new Array (
  2668. "image1.jpg", "image2.jpg", "image3.gif", "image4.gif"
  2669.  
  2670. )
  2671. ccImageList = new Array ();
  2672.  
  2673. for (counter in ccImageSrc) {
  2674. ccImageList[counter] = new Image();
  2675. ccImageList[counter].src = 
  2676. ccImageSrc[counter];
  2677. }
  2678. // -->
  2679. </SCRIPT>
  2680. <!-- END of PRELOAD Image Script -->
  2681.  
  2682. __50
  2683. Quick Survey
  2684. <!-- Start of Quick Survey JavaScript -->
  2685. <!--   DESCRIPTION:  This will ask the user if they want to fill out a survey.  If they do, they fill out the input boxes, then hit submit.  If they don't, they get a link to go to your page.
  2686.  
  2687.     INSTRUCTIONS:  Place this script as the .html file.  The USER will then be 
  2688. redirected to your site.  Be sure to change the values below of the webpage and 
  2689. of your e-mail address.  VERY IMPORTANT!!!!
  2690.  
  2691.     FUNCTIONALITY: Works in both Netscape and IE.
  2692. -->
  2693. <SCRIPT LANGUAGE="JavaScript">
  2694. //Modified by CoffeeCup Software 
  2695. //This code is Copyright (c) 1998 CoffeeCup Software 
  2696. //All rights reserved. License is granted to a single user to 
  2697. //reuse this code on a personal or business Web Site. 
  2698. <!--
  2699.  
  2700. ccsurvey=window.confirm ("Do you want to fill out a quick survey?")
  2701.  
  2702. if (ccsurvey==true) {
  2703.  
  2704. var name = prompt ('Please tell us your name','');
  2705.  
  2706. var age = prompt ('How old are you','');
  2707.  
  2708. var email = prompt ('What is your email address?','');
  2709.  
  2710. document.write("<FORM ACTION=http://www.cgi-free.com/mailer.cgi?youremail@yourprovider.com;http://www.yourpage.com method=post>")
  2711.  
  2712. document.write("<input type=hidden name=name value='" +name+"'>")
  2713.  
  2714. document.write("<input type=hidden name=age value='" +age+"'>")
  2715.  
  2716. document.write("<input type=hidden name=email value='" +email+"'>")
  2717.  
  2718. document.write("<CENTER>Please press <input type=submit name=sent value=SUBMIT> to send your information.</CENTER><P><HR>")
  2719.  
  2720. document.write("</FORM>")
  2721. window.alert ('Thanks for filling out our survey.  Please press the [Submit] button.');
  2722.  
  2723. } else {
  2724. window.alert ("Ok...be that way.");
  2725. document.write("<CENTER><FONT SIZE=7><A HREF=http://www.coffeecup.com>CLICK HERE</A></FONT></CENTER>")
  2726. }
  2727. //-->
  2728. </SCRIPT>
  2729. <!-- END of Quick Survey JavaScript -->
  2730.  
  2731. __51
  2732. Close Browser
  2733. <!-- Start of Close Browser Script -->
  2734. <!-- When the "Close Window" button is clicked, this script
  2735.     will close the browser window that the webpage is in.
  2736. -->
  2737. <script language="JavaScript">
  2738. <!--
  2739.  
  2740. function closeIt() {
  2741.   close();
  2742. }
  2743.  
  2744. // -->
  2745. </script>
  2746.  
  2747. <center>
  2748. <form>
  2749. <input type=button value="Close Window" onClick="closeIt()">
  2750. </form>
  2751. </center>
  2752.  
  2753. <!-- End of Close Browser Script -->
  2754.  
  2755. __52
  2756. Back_Fwd Buttons wFrame
  2757. <!-- Start of Back/Forward Buttons with Frames Script-->
  2758. <!-- Same as Back/Forward Script, but works with FRAMES -->
  2759. <!-- Instructions: Just put this script anywhere on your webpage
  2760.     and you will give your visitor 2 Back and Forward Navigation
  2761.     buttons.  Designed for websites that have multiple webpages.
  2762.  
  2763.     IMPORTANT: Change the value of FRAME TARGET NAME to the name
  2764.     of the frame you are targeting.
  2765. -->
  2766.  
  2767. <form>
  2768. <INPUT TYPE="button" VALUE="BACK" onClick="parent.FRAME TARGET NAME.history.back()">
  2769. <INPUT TYPE="button" VALUE="FORWARD" onClick="parent.FRAME TARGET NAME.history.forward()">
  2770. </form>
  2771.  
  2772. <!-- End of Back/Forward Buttons with Frames Script -->
  2773.  
  2774. __53
  2775. Back_Fwd Buttons
  2776. <!-- Start of Back/Forward Buttons Script-->
  2777. <!-- Instructions: Just put this script anywhere on your webpage
  2778.     and you will give your visitor 2 Back and Forward Navigation
  2779.     buttons.  Designed for websites that have multiple webpages.
  2780. -->
  2781. <SCRIPT LANGUAGE="JavaScript">
  2782. <!-- hide this script tag's contents from old browsers
  2783. function goHist(a) 
  2784. {
  2785.    history.go(a);      // Go back one.
  2786. }
  2787. //<!-- done hiding from old browsers -->
  2788. </script>
  2789. <FORM METHOD="post">
  2790. <INPUT TYPE="button" VALUE="  BACK " onClick="goHist(-1)">
  2791. <INPUT TYPE="button" VALUE="FORWARD" onClick="goHist(1)">
  2792. </form>
  2793.  
  2794. <!-- End of Back/Forward Buttons Script -->
  2795.  
  2796. __54
  2797. Add to Favorites
  2798. <!-- Start of Add to Favorites IE -->
  2799. <!-- Put this script anywhere in your webpage and when a visitor goes
  2800.     to your webpage using Internet Explorer, they only need to 
  2801.     click on the link to add your webpage to their FAVORITES
  2802.     folder.  Netscape users will simply get a reminder to press
  2803.     CTRL-D to bookmark.
  2804. -->
  2805.  
  2806. <SCRIPT LANGUAGE="JavaScript">
  2807. <!--
  2808. if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  2809.  
  2810. var url="http://www.coffeecup.com.com";
  2811. var title="CoffeeCup Software - Web Authoring Tools";
  2812.  
  2813. document.write('<A HREF="javascript:window.ext');
  2814. document.write('ernal.AddFavorite(url,title);" ');
  2815. document.write('onMouseOver=" window.status=');
  2816. document.write("'Add our site to your favorites!'; return true ");
  2817. document.write('"onMouseOut=" window.status=');
  2818. document.write("' '; return true ");
  2819. document.write('">Add our site to your favorites!</a>');
  2820. }
  2821. else {
  2822. var msg = "Don't forget to bookmark us!";
  2823. if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
  2824. document.write(msg);
  2825. }
  2826.  
  2827. // -->
  2828. </script>
  2829. <!-- End of Add to Favorites IE -->
  2830.  
  2831. __55
  2832. Message Alert
  2833. <!-- Start of Message Alert -->
  2834. <!-- Use this button in a form to pop-up a message when the user clicks it -->
  2835. <form>
  2836. <input type="button" value="message" onClick="alert('YOUR MESSAGE GOES HERE'); return true">
  2837. </form>
  2838. <!-- End of Message Alert -->
  2839.  
  2840. __56
  2841. OnLoad Message
  2842. <!-- Start of OnLoad Message -->
  2843. <!-- Just put this tag as your BODY tag and you will have a message
  2844.     in the Status Bar of the Browser all the time.  Be sure not
  2845.     to have two BODY tags.  -->
  2846.  
  2847. <BODY ONLOAD="window.defaultStatus='Welcome to My Web Page'">
  2848.  
  2849. <!-- End of OnLoad Message -->
  2850.  
  2851. __57
  2852. Revolving Colors
  2853. <!-- Start of Revolving Colors -->
  2854. <!-- This script will make a sentence of text change in different
  2855.     variant colors.
  2856.     
  2857.     Important:  Only works in the 4.0 Browsers
  2858. -->
  2859. <SCRIPT LANGUAGE="JavaScript1.2">
  2860. <!--
  2861. function initArray() {
  2862. this.length = initArray.arguments.length;
  2863. for (var i = 0; i < this.length; i++) {
  2864. this[i] = initArray.arguments[i];
  2865.    }
  2866. }
  2867.  
  2868. var ctext = "Too much caffeine makes you see weird colors.";
  2869. var speed = 1000;
  2870. var x = 0;
  2871. var color = new initArray(
  2872. "red", 
  2873. "blue", 
  2874. "green",
  2875. "black"
  2876. );
  2877. if(navigator.appName == "Netscape") {
  2878. document.write('<layer id="c"><center>'+ctext+'</center></layer><br>');
  2879. }
  2880. if (navigator.appVersion.indexOf("MSIE") != -1){
  2881. document.write('<div id="c"><center>'+ctext+'</center></div>');
  2882. }
  2883. function chcolor(){ 
  2884. if(navigator.appName == "Netscape") {
  2885. document.c.document.write('<center><font color="'+color[x]);
  2886. document.c.document.write('">'+ctext+'</font></center>');
  2887. document.c.document.close();
  2888. }
  2889. else if (navigator.appVersion.indexOf("MSIE") != -1){
  2890. document.all.c.style.color = color[x];
  2891. }
  2892. (x < color.length-1) ? x++ : x = 0;
  2893. }
  2894. setInterval("chcolor()",1000);
  2895. // -->
  2896. </script>
  2897. <!-- End of Revolving Colors -->
  2898.  
  2899. __58
  2900. Status Bar Clock
  2901. <!-- Start of Status Bar Clock -->
  2902. <!-- This Script puts a digital clock in your status bar, very cool -->
  2903. <!-- This section goes in between your head tags -->
  2904.  
  2905. <script Language="JavaScript">
  2906. var timerID = null;
  2907. var timerRunning = false;
  2908.  
  2909. function stopclock (){
  2910.         if(timerRunning)
  2911.                 clearTimeout(timerID);
  2912.         timerRunning = false;
  2913. }
  2914.  
  2915.  
  2916. function showtime () {
  2917.         var now = new Date();
  2918.         var hours = now.getHours();
  2919.         var minutes = now.getMinutes();
  2920.         var seconds = now.getSeconds()
  2921.         var timeValue = "" + ((hours >12) ? hours -12 :hours)
  2922.         timeValue += ((minutes < 10) ? ":0" : ":") + minutes
  2923.         timeValue += ((seconds < 10) ? ":0" : ":") + seconds
  2924.         timeValue += (hours >= 12) ? " P.M." : " A.M."
  2925.         window.status = timeValue;
  2926.         timerID = setTimeout("showtime()",1000);
  2927.         timerRunning = true;
  2928. }
  2929. function coffeeclock () {
  2930.         stopclock();
  2931.         showtime();
  2932. }
  2933. </script>
  2934.  
  2935. <!-- put this in your body tag -->
  2936.  
  2937. <body onLoad="coffeeclock()">
  2938.  
  2939. <!-- put this in your document body -->
  2940.  
  2941. <form name="clock" onSubmit="0">
  2942.  
  2943. <!-- End of Status Bar Clock -->
  2944.  
  2945. __59
  2946. Status Blinker
  2947. <!-- Start of Status Blinker -->
  2948. <!-- This will put a blinking status bar message in your webpage.
  2949.     Important:  There are two parts to this script, one goes
  2950.     in between the HEAD tags and one goes in the BODY tag.
  2951. -->
  2952. <script>
  2953. var yourwords = "CoffeeCup Rocks !";
  2954. var speed = 300;
  2955. var control = 1;
  2956. function flash()
  2957. {
  2958.   if (control == 1)
  2959.     {
  2960.       window.status=yourwords;
  2961.       control=0;
  2962.     }  
  2963.   else
  2964.     {
  2965.       window.status="";
  2966.       control=1;
  2967.     }
  2968.   setTimeout("flash()",speed);
  2969. }
  2970. </script>
  2971. <!--You can control the speed of the flashing in this script. You just need to change the speed number 300. Bigger the number the slower it goes.-->
  2972. <!-- From this part on up goes in between the HEAD tags -->
  2973.  
  2974.  
  2975. <body onLoad="flash()">
  2976.  
  2977. <!-- End of Status Blinker -->
  2978.  
  2979. __60
  2980. Text Counter
  2981. <!-- Start of Text Counter -->
  2982. <!--    Description:  This will display a text counter on your webpage.
  2983.  
  2984.     Instructions: Place the entire script in your webpage where you
  2985.     want the counter to appear.
  2986.  
  2987.     To change the look of the sentence that appears on your webpage
  2988.     simply adjust the HTML properties on the last script line.
  2989. -->
  2990. <SCRIPT LANGUAGE="JavaScript">
  2991. <!--
  2992. var caution = false
  2993. function setCookie(name, value, expires, path, domain, secure) {
  2994.         var curCookie = name + "=" + escape(value) +
  2995.                 ((expires) ? "; expires=" + expires.toGMTString() : "") +
  2996.                 ((path) ? "; path=" + path : "") +
  2997.                 ((domain) ? "; domain=" + domain : "") +
  2998.                 ((secure) ? "; secure" : "")
  2999.         if (!caution || (name + "=" + escape(value)).length <= 4000)
  3000.                 document.cookie = curCookie
  3001.         else
  3002.                 if (confirm("Cookie exceeds 4KB and will be cut!"))
  3003.                         document.cookie = curCookie
  3004. }
  3005.  
  3006.  
  3007. function getCookie(name) {
  3008.         var prefix = name + "="
  3009.         var cookieStartIndex = document.cookie.indexOf(prefix)
  3010.         if (cookieStartIndex == -1)
  3011.                 return null
  3012.         var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
  3013.         if (cookieEndIndex == -1)
  3014.                 cookieEndIndex = document.cookie.length
  3015.         return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
  3016. }
  3017.  
  3018.  
  3019. function deleteCookie(name, path, domain) {
  3020.         if (getCookie(name)) {
  3021.                 document.cookie = name + "=" + 
  3022.                 ((path) ? "; path=" + path : "") +
  3023.                 ((domain) ? "; domain=" + domain : "") +
  3024.                 "; expires=Thu, 01-Jan-70 00:00:01 GMT"
  3025.         }
  3026. }
  3027.  
  3028.  
  3029. function fixDate(date) {
  3030.         var base = new Date(0)
  3031.         var skew = base.getTime()
  3032.         if (skew > 0)
  3033.                 date.setTime(date.getTime() - skew)
  3034. }
  3035.  
  3036. var now = new Date()
  3037. fixDate(now)
  3038. now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
  3039. var visits = getCookie("counter")
  3040. if (!visits)
  3041.         visits = 1
  3042. else
  3043.         visits = parseInt(visits) + 1
  3044. setCookie("counter", visits, now)
  3045. // YOU CAN EDIT THE SENTENCE THAT APPEARS ON YOUR WEBPAGE ON THE NEXT LINE
  3046. document.write("<CENTER><FONT FACE=VERDANA SIZE=2>You are visitor <B>#" + visits + "</B>.</FONT></CENTER>")
  3047.  
  3048. // -->
  3049. </SCRIPT>
  3050. <!-- End of Text Counter -->
  3051.  
  3052. ***DHTML Scripts***
  3053. __61
  3054. Curtain
  3055. <!-- START OF Curtain DHTML -->
  3056.  
  3057. <!-- SUMMARY BRIEFS
  3058.     This DHTML script will give a "curtain" effect displaying
  3059.     your webpage.  You can adjust the color by changing the 
  3060.     HEX code below and the word "PURPLE".
  3061.  
  3062.     Place this after the <BODY> tag.
  3063. -->
  3064.  
  3065.  
  3066. <style>
  3067. <!--
  3068. .curtain{
  3069. position:absolute;
  3070. left:0;
  3071. top:0;
  3072. layer-background-color:800080;
  3073. background-color:800080;
  3074. border:0.1px solid PURPLE
  3075. }
  3076. -->
  3077. </style>
  3078.  
  3079.  
  3080. <div id="c1" class="curtain"></div><div id="c2" class="curtain"></div>
  3081. <script language="JavaScript1.2">
  3082.  
  3083.  
  3084. var speed=20
  3085. var temp=new Array()
  3086. var temp2=new Array()
  3087. if (document.layers){
  3088. for (c=1;c<=2;c++){
  3089. temp[c]=eval("document.c"+c+".clip")
  3090. temp2[c]=eval("document.c"+c)
  3091. temp[c].width=window.innerWidth
  3092. temp[c].height=window.innerHeight/2
  3093. temp2[c].top=(c-1)*temp[c].height
  3094. }
  3095. }
  3096. else if (document.all){
  3097. var curtainbottom=document.body.offsetHeight/2,curtaintop=0
  3098. for (c=1;c<=2;c++){
  3099. temp[c]=eval("document.all.c"+c+".style")
  3100. temp[c].width=document.body.clientWidth
  3101. temp[c].height=document.body.offsetHeight/2
  3102. temp[c].top=(c-1)*parseInt(temp[c].height)
  3103. }
  3104. }
  3105.  
  3106. function openit(){
  3107. window.scrollTo(0,0)
  3108. if (document.layers){
  3109. temp[1].bottom-=speed
  3110. temp[2].top+=speed
  3111. if (temp[1].bottom<=0)
  3112. clearInterval(stopit)
  3113. }
  3114. else if (document.all){
  3115. curtainbottom-=speed
  3116. temp[1].clip="rect(0 auto+"+curtainbottom+" 0)"
  3117. curtaintop+=speed
  3118. temp[2].clip="rect("+curtaintop+" auto auto)"
  3119. if (curtainbottom<=0)
  3120. clearInterval(stopit)
  3121. }
  3122. }
  3123. function gogo(){
  3124. stopit=setInterval("openit()",100)
  3125. }
  3126. gogo()
  3127.  
  3128. </script>
  3129.  
  3130. <!-- END OF Curtain DHTML -->
  3131.  
  3132. __62
  3133. Drop Down
  3134. <!-- START OF Drop Down DHTML -->
  3135.  
  3136. <!-- SUMMARY BRIEFS
  3137.     This DHTML script will create a drop down link box out of
  3138.     an ordinary link.  VERY COOL!!!!
  3139.  
  3140.     The top portion of this script goes above the <BODY> tag.
  3141.     The second portion goes where you want the drop down link
  3142.     box to be.
  3143. -->
  3144.  
  3145.  
  3146.  
  3147.  
  3148. <style>
  3149. <!--
  3150. #wrapper{
  3151. position:relative;
  3152. height:30px
  3153. }
  3154.  
  3155. #wrapper2{
  3156. position:absolute
  3157. }
  3158.  
  3159. #coffeemenu03{
  3160. filter:revealTrans(Duration=1.5,Transition=12)
  3161. visibility:hide
  3162. }
  3163.  
  3164.  
  3165. -->
  3166. </style></HEAD>
  3167.  
  3168. <BODY>
  3169.  
  3170. <ilayer id="coffeemenu01" height=35px>
  3171. <layer id="coffeemenu02" visibility=show>
  3172. <span id="wrapper">
  3173. <span id="wrapper2" onClick="dropit2();event.cancelBubble=true;return false">
  3174. <font face="Verdana"><b><a href="notthisbrowser.html">Click Here To Navigate</a></b></font>
  3175. </span>
  3176. </span>
  3177. </layer>
  3178. </ilayer>
  3179.  
  3180. <script language="JavaScript1.2">
  3181.  
  3182.  
  3183. var enableeffect=true
  3184.  
  3185. var selection=new Array()
  3186. selection[0]='<font face="ARIAL BLACK"><a href="http://www.coffeecup.com">Order Our Stuff</a><br>'
  3187. selection[1]='<a href="http://www.coffeecup.com">Contact Us via E-mail</a><br>'
  3188. selection[2]='<a href="http://www.coffeecup.com">Help With Our Items</a><br>'
  3189. selection[3]='<a href="http://www.coffeecup.com">Products We Have</a><br>'
  3190. selection[4]='<a href="http://www.coffeecup.com">Services We Offer</a><br></font>'
  3191.  
  3192. if (document.layers)
  3193. document.coffeemenu01.document.coffeemenu02.visibility='show'
  3194.  
  3195. function dropit2(){
  3196. if (document.all){
  3197. coffeemenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX
  3198. coffeemenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+18
  3199. if (coffeemenu03.style.visibility=="hidden"){
  3200. if (enableeffect)
  3201. coffeemenu03.filters.revealTrans.apply()
  3202. coffeemenu03.style.visibility="visible"
  3203. if (enableeffect)
  3204. coffeemenu03.filters.revealTrans.play()
  3205. }
  3206. else{
  3207. hidemenu()
  3208. }
  3209. }
  3210. }
  3211.  
  3212. function dropit(e){
  3213. if (document.coffeemenu03.visibility=="hide")
  3214. document.coffeemenu03.visibility="show"
  3215. else
  3216. document.coffeemenu03.visibility="hide"
  3217. document.coffeemenu03.left=e.pageX-e.layerX
  3218. document.coffeemenu03.top=e.pageY-e.layerY+19
  3219. return false
  3220. }
  3221.  
  3222. function hidemenu(){
  3223. if (enableeffect)
  3224. coffeemenu03.filters.revealTrans.stop()
  3225. coffeemenu03.style.visibility="hidden"
  3226. }
  3227.  
  3228. function hidemenu2(){
  3229. document.coffeemenu03.visibility="hide"
  3230. }
  3231.  
  3232. if (document.layers){
  3233. document.coffeemenu01.document.coffeemenu02.captureEvents(Event.CLICK)
  3234. document.coffeemenu01.document.coffeemenu02.onclick=dropit
  3235. }
  3236. else if (document.all)
  3237. document.body.onclick=hidemenu
  3238.  
  3239. </script>
  3240.  
  3241. <div id="coffeemenu03" style="position:absolute;left:0;top:0;layer-background-color:#C0C0C0;background-color:#C0C0C0;width:200;visibility:hidden;border:2px solid black;padding:0px">
  3242. <script language="JavaScript1.2">
  3243. if (document.all)
  3244. coffeemenu03.style.padding='4px'
  3245. for (i=0;i<selection.length;i++)
  3246. document.write(selection[i])
  3247. </script>
  3248. </div>
  3249.  
  3250. <script language="JavaScript1.2">
  3251. if (document.layers){
  3252. document.coffeemenu03.captureEvents(Event.CLICK)
  3253. document.coffeemenu03.onclick=hidemenu2
  3254. }
  3255. </script>
  3256.  
  3257. <!-- END OF Drop Down DHTML -->
  3258.  
  3259. __63
  3260. Link Tips
  3261. <!-- START OF LINK TIPS DHTML -->
  3262.  
  3263. <!-- SUMMARY BRIEFS
  3264.     This DHTML script will give pop up tips on any link.
  3265.     You can adjust the font, the content, and even the 
  3266.     background color of the tool tips.
  3267.  
  3268.     Place this script anywhere within the <BODY> tags.
  3269. -->
  3270.  
  3271. <script>
  3272.  
  3273. if (!document.layers&&!document.all)
  3274. event="test"
  3275. function showtip(current,e,text){
  3276.  
  3277. if (document.all){
  3278. thetitle=text.split('<br>')
  3279. if (thetitle.length>1){
  3280. thetitles=''
  3281. for (i=0;i<thetitle.length;i++)
  3282. thetitles+=thetitle[i]
  3283. current.title=thetitles
  3284. }
  3285. else
  3286. current.title=text
  3287. }
  3288.  
  3289. else if (document.layers){
  3290. document.linktips.document.write('<layer bgColor="yellow" style="border:1px solid black;font-family:arial;font-size:12px;">'+text+'</layer>')
  3291. document.linktips.document.close()
  3292. document.linktips.left=e.pageX+5
  3293. document.linktips.top=e.pageY+5
  3294. document.linktips.visibility="show"
  3295. }
  3296. }
  3297. function hidetip(){
  3298. if (document.layers)
  3299. document.linktips.visibility="hidden"
  3300. }
  3301.  
  3302. </script>
  3303. <div id="linktips" style="position:absolute;visibility:hidden"></div>
  3304.  
  3305. <FONT FACE=ARIAL FACE=ARIAL>
  3306.  
  3307. <a href="http://www.coffeecup.com"
  3308.          onMouseover="showtip(this,event,'Please Visit the CoffeeCup Software Web Site!')" onMouseout="hidetip()">Visit Our Site</a>
  3309. <P>
  3310.  
  3311. <a href="http://www.coffeecup.com"
  3312.          onMouseover="showtip(this,event,'Learn More About Style Sheets and DHTML')" onMouseout="hidetip()">Learn More</a>
  3313. <P>
  3314.  
  3315. <a href="http://www.coffeecup.com"
  3316.          onMouseover="showtip(this,event,'Contact Us via E-mail...<BR>or by Snail Mail if you Wish')" onMouseout="hidetip()">Contact Us</a>
  3317.  
  3318. <P>
  3319.  
  3320. <a href="http://www.coffeecup.com/order"
  3321.          onMouseover="showtip(this,event,'Order One the Coolest Tools on the Web Now!')" onMouseout="hidetip()">Order Software</a>
  3322.  
  3323. <P>
  3324. </FONT>
  3325.  
  3326.  
  3327. <!-- END OF Link Tips DHTML -->
  3328.  
  3329. __64
  3330. Message Reader
  3331. <!-- START OF Message Reader DHTML -->
  3332.  
  3333. <!-- SUMMARY BRIEFS
  3334.  
  3335.     This DHTML script will cycle through 4 different text links.
  3336.     You can adjust the text and links below to meet your webpage.
  3337.     
  3338.      IMPORTANT
  3339.  
  3340.     Make suer that this body tag is included in your webpage.  It
  3341.     activates the Message Reader.  
  3342. -->
  3343.  
  3344. <body onload="if (document.all||document.layers) {regenerate2();update()}">
  3345.  
  3346. <style>
  3347. <!--
  3348. #msgline{
  3349. position:relative;
  3350. layer-background-color:black;
  3351. width:400;
  3352. height:12;
  3353. }
  3354.  
  3355. #msgtext{
  3356. background-color:black;
  3357. position:absolute;
  3358. border: 1px solid black;
  3359. width:400;
  3360. height:12;
  3361.  
  3362. }
  3363.  
  3364.  
  3365. .msgtextfont{
  3366. font:bold 16px Arial;
  3367. postition:absolute;
  3368. left:5px;
  3369. text-decoration:none;
  3370. color:white;
  3371. }
  3372.  
  3373. .msgtextfont a{
  3374. color:white;
  3375. text-decoration:none;
  3376. }
  3377. -->
  3378. </style>
  3379. <div id="msgline">
  3380. <div id="msgtext" class="msgtextfont">Starting Messages...</div>
  3381. </div>
  3382.  
  3383. <script language="JavaScript1.2">
  3384.  
  3385. var speed=4000
  3386. var news=new Array()
  3387. news[0]="<a href='http://www.coffeecup.com'>First line of text....</a>"
  3388. news[1]="<a href='http://www.coffeecup.com'>Second line of text....</a>"
  3389. news[2]="<a href='http://www.coffeecup.com'>Third line of text....</a>"
  3390. news[3]="<a href='http://www.coffeecup.com'>Add as many as you want....</a>"
  3391.  
  3392. i=0
  3393. if (document.all)
  3394. tickerobject=document.all.msgtext.style
  3395. else
  3396. tickerobject=document.msgline.document
  3397. function regenerate(){
  3398. window.location.reload()
  3399. }
  3400. function regenerate2(){
  3401. if (document.layers)
  3402. setTimeout("window.onresize=regenerate",450)
  3403. }
  3404.  
  3405. function update(){
  3406.  BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
  3407. if (document.layers){
  3408. document.msgline.document.msgtext.document.write('<span class="msgtextfont">'+news[i]+'</span>')
  3409. document.msgline.document.msgtext.document.close()
  3410. }
  3411. else 
  3412. document.all.msgtext.innerHTML=news[i]
  3413.  
  3414. if (i<news.length-1)
  3415. i++
  3416. else
  3417. i=0
  3418. setTimeout("update()",speed)
  3419. }
  3420.  
  3421.  function BgFade(red1, grn1, blu1, red2,
  3422.  grn2, blu2, steps) {
  3423.  sred = red1; sgrn = grn1; sblu = blu1; 
  3424.  ered = red2; egrn = grn2; eblu = blu2; 
  3425.  inc = steps; 
  3426.  step = 0; 
  3427.  MsgDither();
  3428.  }
  3429.  function MsgDither() {
  3430.  var epct = step/inc; 
  3431.  var spct = 1 - epct; 
  3432.  if (document.layers)
  3433.  tickerobject.bgColor =
  3434.  Math.floor(sred * spct + ered *
  3435.  epct)*256*256 +
  3436.  Math.floor(sgrn * spct + egrn * epct)*256 +
  3437.  Math.floor(sblu * spct + eblu * epct); 
  3438.  else
  3439.  tickerobject.backgroundColor=
  3440.  Math.floor(sred * spct + ered *
  3441.  epct)*256*256 +
  3442.  Math.floor(sgrn * spct + egrn * epct)*256 +
  3443.  Math.floor(sblu * spct + eblu * epct); 
  3444.  if ( step < inc ) {
  3445.  setTimeout('MsgDither()',50); 
  3446.  }
  3447.  step++;
  3448.  }
  3449.  
  3450. </script>
  3451.  
  3452. <!-- END OF Message Reader DHTML -->
  3453.  
  3454. __65
  3455. Mouse Follow
  3456. <!-- START OF Nouse Follow DHTML -->
  3457.  
  3458. <!-- SUMMARY BRIEFS
  3459.     Put this DHTML after the </HEAD> tag but before the 
  3460.     <BODY> tag.  This DHTML script will create a small
  3461.     layer that hovers around the mouse pointer.  The
  3462.     current image being used is called "smile.gif" and
  3463.     has a size of HEIGHT 11 and WIDTH 11.  To place your
  3464.     own image in place of the current one, rename "smile.gif"
  3465.     and change the HEIGHT and WIDTH specs in the CLIP 
  3466.     attribute.  (This is in the first line of code.)
  3467.  
  3468.      IMPORTANT
  3469.  
  3470.     This example has an image.  It is found in the CoffeeCup
  3471.     Software folder on your hard drive.
  3472.      ╨αßε≥ασ≥ ≥εδⁿΩε Γ Netscape. ╤ετΣασ≥ δασΘ≡ Ωε≥ε≡√Θ ∩ε ±δεµφεΘ ≥≡ασ≥ε≡ΦΦ
  3473.      δσ≥ασ≥ ΓεΩ≡≤π ∞√°ΩΦ :-). ─ε±≥ασ≥ ±Φδⁿφε, φε ∩≡ΦΩεδⁿφε.
  3474. -->
  3475.  
  3476.  
  3477. <layer NAME="a" LEFT="10" TOP="10" VISIBILITY="SHOW"
  3478. CLIP="0,0,11,11" background="smile.gif">
  3479. </layer>
  3480. <script LANGUAGE="JavaScript1.2">
  3481. var userAgent=navigator.appName + " " + navigator.appVersion;
  3482. var agentInfo=userAgent.substring(0, 12);
  3483. if(agentInfo >= "Netscape 4.0")
  3484. {
  3485. window.captureEvents(Event.MOUSEMOVE);
  3486. // Logo animation
  3487. var yBase = window.innerHeight/2;
  3488. var xBase = window.innerWidth/2;
  3489. var delay = 50;
  3490. var yAmpl = 10;
  3491. var yMax = 40;
  3492. var step = .2;
  3493. var ystep = .5;
  3494. var currStep = 0;
  3495. var tAmpl=1;
  3496. var Xpos = 50;
  3497. var Ypos = 50;
  3498. var b = 0;
  3499. function MoveHandler(evnt) {
  3500.   Xpos = evnt.pageX ;
  3501.   Ypos = evnt.pageY ;
  3502. }
  3503. window.onMouseMove = MoveHandler;
  3504. function animateLogo() {
  3505.   yBase = window.innerHeight/4 ;
  3506.   xBase = window.innerWidth/4;
  3507.   for ( b = 0 ; b < 1 ; b++ ) {
  3508.     document.layers[b].top = Ypos +
  3509. Math.cos((20*Math.sin(currStep/(20+b)))+b*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + b*25)/10);
  3510.     document.layers[b].left =Xpos +
  3511. Math.sin((20*Math.sin(currStep/20))+b*70)*xBase*(Math.sin(10+currStep/(10+b))+0.2)*Math.cos((currStep + b*25)/10);
  3512.   }
  3513.   currStep += step;
  3514.   setTimeout("animateLogo()", delay) ;
  3515. }
  3516. animateLogo()
  3517. }
  3518. // -->
  3519.  
  3520. </script>
  3521. </LAYER>
  3522.  
  3523. <!-- END OF Nouse Follow DHTML -->
  3524.  
  3525. __66
  3526. Page Transitions
  3527. <!-- START OF Page Transitions DHTML -->
  3528.  
  3529. <!-- SUMMARY BRIEFS
  3530.  
  3531.     ONLY WORKS IN Internet Explorer.  Does not effect Netscape.
  3532.  
  3533.     Place this <META> tag in between the <HEAD> tags of
  3534.     all your Webpages.  Then view the Webpages in IE 4
  3535.     and you will notice the page transitions.  Randomly
  3536.     the pages will be displayed in different transitions
  3537.     such as swipe left, swipe right, expand out, etc.
  3538. -->
  3539.  
  3540. <meta http-equiv="Page-Enter" content="revealTrans(Duration=1.0,Transition=23)">
  3541. <meta http-equiv="Page-Exit" content="revealTrans(Duration=1.0,Transition=23)">
  3542.  
  3543. <!-- End OF Page Transitions DHTML -->
  3544.  
  3545. __67
  3546. Rolling Credits
  3547. <!-- START OF Rolling Credits DHTML -->
  3548.  
  3549. <!-- SUMMARY BRIEFS
  3550.     This example shows how you can create a webpage
  3551.     that scrolls up.  The webpage must be long (vertically)
  3552.     in order for the effect to work.
  3553. -->
  3554.  
  3555. <SCRIPT LANGUAGE="JavaScript">
  3556. <!--
  3557.         var position = 0;
  3558. function scroller() {
  3559.         if (position != 320) {
  3560.                 position++;
  3561.                 scroll(0,position);
  3562.                 clearTimeout(timer);
  3563.                 var timer = setTimeout("scroller()",3); timer;
  3564.         }
  3565.         else
  3566.                  {
  3567.            location.replace("#");
  3568.         }
  3569. }
  3570. // -->
  3571. </SCRIPT>
  3572. </HEAD>
  3573.  
  3574. <BODY onload="scroller()">
  3575. <CENTER>
  3576. <font face="VERDANA, ARIAL" size="5" color=804040>Rolling Credits</font><p>
  3577. <font face="VERDANA, ARIAL" size="4">This script allows you to:
  3578. <HR WIDTH=350 NOSHADE>
  3579. <P>
  3580. Place<P> text<P> descriptions<p>
  3581. of <P>any <P>sort<p>
  3582. and it will <P>scroll up<p>
  3583. the page <P>until its done.<p>
  3584. <P>
  3585. You can even<P> 
  3586. make <A HREF="http://www.coffeecup.com/">Links.</A><p>
  3587. Or<P>
  3588. use<P>
  3589. images.<p>
  3590. <p></font>
  3591. </CENTER>
  3592.  
  3593. <!-- END OF Rolling Credits DHTML -->
  3594.  
  3595. __68
  3596. Scroller
  3597. <!-- START OF Scroller DHTML -->
  3598.  
  3599. <!-- SUMMARY BRIEFS
  3600.     Place this DHTML script after the <BODY> tag.  In this DHTML
  3601.     script you can have a scrolling message.  You can also add
  3602.     images to the scrolling message, but keep in mind that if the
  3603.     HEIGHT is bigger than the predefined HEIGHT, your image will
  3604.     be clipped.  Adjust the predefined HEIGHT by adjust the number
  3605.     beside 'scrollerheight'.
  3606. -->
  3607.  
  3608. <script language="JavaScript1.2">
  3609. var scrollercontents='<font face="Verdana, Arial" SIZE=4><B>Thank you for visiting <a href="http://www.coffeecup.com">Our Site.</a> Please Register your Shareware <a href="http://www.coffeecup.com/order">Here.</a> Thanks !</B></font>'
  3610.  
  3611. var scrollerwidth=330
  3612. var scrollerheight=25
  3613. var speed=6
  3614.  
  3615.  
  3616. if (document.all)
  3617. document.write('<scroller scrollAmount='+speed+' style="width:'+scrollerwidth+'">'+scrollercontents+'</scroller>')
  3618.  
  3619. function regenerate(){
  3620. window.location.reload()
  3621. }
  3622. function regenerate2(){
  3623. if (document.layers){
  3624. setTimeout("window.onresize=regenerate",450)
  3625. intializescroller()
  3626. }
  3627. }
  3628.  
  3629. function intializescroller(){
  3630. document.cscroller01.document.cscroller02.document.write('<nobr>'+scrollercontents+'</nobr>')
  3631. document.cscroller01.document.cscroller02.document.close()
  3632. thelength=document.cscroller01.document.cscroller02.document.width
  3633. scrollit()
  3634. }
  3635.  
  3636. function scrollit(){
  3637. if (document.cscroller01.document.cscroller02.left>=thelength*(-1)){
  3638. document.cscroller01.document.cscroller02.left-=speed
  3639. setTimeout("scrollit()",100)
  3640. }
  3641. else{
  3642. document.cscroller01.document.cscroller02.left=scrollerwidth
  3643. scrollit()
  3644. }
  3645. }
  3646.  
  3647. window.onload=regenerate2
  3648. </script>
  3649.  
  3650.  
  3651. <layer width=&{scrollerwidth}; height=&{scrollerheight}; name="cscroller01">
  3652. <layer name="cscroller02"></layer>
  3653. <layer>
  3654.  
  3655. <!-- End OF Scroller DHTML -->
  3656.  
  3657. __69
  3658. Slide Menu
  3659. <!-- START OF Slide Menu DHTML -->
  3660.  
  3661. <!-- SUMMARY BRIEFS
  3662.     Place this DHTML script after the </HEAD> tag and before
  3663.     the <BODY> tag.  In this DHTML script, there are five links
  3664.     that constantly remain in the upper left hand corner.  You
  3665.     can change these links to meet your own.  The Style Sheet 
  3666.     has been adjusted to "push" your webpage 120 pixels to the
  3667.     right so that the links do not touch any of your text/images.
  3668.     You can adjust this by changing the pixel amount in the BODY
  3669.     section of the below Style Sheet.
  3670.  
  3671.  
  3672. -->
  3673.  
  3674. <style TYPE="text/css">
  3675. #slide {
  3676.                 Position: Absolute;
  3677.                 Left: 5;
  3678.                 Top: 5;
  3679.                 Visibility: Visible;
  3680.                 }
  3681.  
  3682. A:LINK        {text-decoration: none;}
  3683. A:VISITED    {text-decoration: none;}
  3684. TD        {font-family:arial;}
  3685. BODY        {Margin-Left: 120;}
  3686.  
  3687. </style>
  3688. <span ID="slide">
  3689.  
  3690. <table CELLSPACING="0" BORDER="0" CELLPADDING="0" ALIGN="LEFT" >
  3691. <TR><td><HR NOSHADE></TD></tr>
  3692. <tr>
  3693. <td><A HREF="http://www.coffeecup.com">CONTACT US</A><BR></td>
  3694. </TR>
  3695. <tr>
  3696. <td><A HREF="http://www.coffeecup.com">HELP</A><BR></td>
  3697. </tr>
  3698. <tr>
  3699. <td><A HREF="http://www.coffeecup.com">SERVICES</A><br></td>
  3700. </tr>
  3701. <tr>
  3702. <td><A HREF="http://www.coffeecup.com">PRODUCTS</A><br></td>
  3703. </tr>
  3704. <tr>
  3705. <td><A HREF="http://www.coffeecup.com/order">ORDER</A><br></td>
  3706. </tr>
  3707. <TR><td><HR NOSHADE></TD></tr>
  3708. </table>
  3709. </span>
  3710.  
  3711. <script LANGUAGE="JavaScript">
  3712.  
  3713.         self.onError=null;
  3714.         
  3715.         currentX = currentY = 0;  
  3716.         whichIt = null;           
  3717.         lastScrollX = 0; lastScrollY = 0;
  3718.         
  3719.         NS = (document.layers) ? 1 : 0;
  3720.         IE = (document.all) ? 1: 0;
  3721.         
  3722.         function heartBeat() {
  3723.         
  3724.                 if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
  3725.             if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
  3726.                 
  3727.                 if(diffY != lastScrollY) {
  3728.                         percent = .1 * (diffY - lastScrollY);
  3729.                         if(percent > 0) percent = Math.ceil(percent);
  3730.                         else percent = Math.floor(percent);
  3731.                                         if(IE) document.all.slide.style.pixelTop += percent;
  3732.                                         if(NS) document.slide.top += percent; 
  3733.                         lastScrollY = lastScrollY + percent;
  3734.             }
  3735.                 if(diffX != lastScrollX) {
  3736.                         percent = .1 * (diffX - lastScrollX);
  3737.                         if(percent > 0) percent = Math.ceil(percent);
  3738.                         else percent = Math.floor(percent);
  3739.                         if(IE) document.all.slide.style.pixelLeft += percent;
  3740.                         if(NS) document.slide.left += percent;
  3741.                         lastScrollX = lastScrollX + percent;
  3742.                 }       
  3743.         }
  3744.  
  3745.         function checkFocus(x,y) { 
  3746.         var totalY, totalX;
  3747.                 floatx = document.slide.pageX;
  3748.                 floaty = document.slide.pageY;
  3749.                 floatwidth = document.slide.clip.width;
  3750.                 floatheight = document.slide.clip.height;
  3751.                         
  3752.                         if(20 == 0) totalY = floatheight;
  3753.                         else totalY = 20;
  3754.                         if(0 == 0) totalX = floatwidth;
  3755.                         else totalX = 0;
  3756.                 if( (x > floatx && x < (floatx+totalX)) && (y > floaty && y < (floaty+totalY))) return true;
  3757.                 else return false;
  3758.         }
  3759.         
  3760.         function grabIt(e) {
  3761.                 if(IE) {
  3762.                         whichIt = event.srcElement;
  3763.                         while (whichIt.id.indexOf("slide") == -1) {
  3764.                                 whichIt = whichIt.parentElement;
  3765.                                 if (whichIt == null) { return true; }
  3766.                     }
  3767.                         whichIt.style.pixelLeft = whichIt.offsetLeft;
  3768.                     whichIt.style.pixelTop = whichIt.offsetTop;
  3769.                         currentX = (event.clientX + document.body.scrollLeft);
  3770.                         currentY = (event.clientY + document.body.scrollTop);
  3771.                         
  3772.                         if(20 == 0) totalY = whichIt.style.pixelHeight;
  3773.                         else totalY = 20;
  3774.                         if(0 == 0) totalX = whichIt.style.pixelWidth;
  3775.                         else totalX = 0;
  3776.                         if(!(event.clientX > whichIt.offsetLeft && event.clientX < whichIt.offsetLeft + totalX) || 
  3777.                         !(currentY > whichIt.offsetTop && currentY < whichIt.offsetTop + totalY)) whichIt = null;
  3778.                 } else { 
  3779.                 window.captureEvents(Event.MOUSEMOVE);
  3780.                 if(checkFocus (e.pageX,e.pageY)) { 
  3781.                         whichIt = document.slide;
  3782.                         FloatTouchedX = e.pageX-document.slide.pageX;
  3783.                         FloatTouchedY = e.pageY-document.slide.pageY;
  3784.                 } 
  3785.                 }
  3786.             return true;
  3787.         }
  3788.         
  3789.         function moveIt(e) {
  3790.                 if (whichIt == null) { return false; }
  3791.                 if(IE) {
  3792.                     newX = (event.clientX + document.body.scrollLeft);
  3793.                     newY = (event.clientY + document.body.scrollTop);
  3794.                     distanceX = (newX - currentX);    distanceY = (newY - currentY);
  3795.                     currentX = newX;    currentY = newY;
  3796.                     whichIt.style.pixelLeft += distanceX;
  3797.                     whichIt.style.pixelTop += distanceY;
  3798.                         if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
  3799.                         if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
  3800.                         if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
  3801.                         if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
  3802.                         event.returnValue = false;
  3803.                 } else { 
  3804.                         whichIt.moveTo(e.pageX-FloatTouchedX,e.pageY-FloatTouchedY);
  3805.                 if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
  3806.                 if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
  3807.                 if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
  3808.                 if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
  3809.                 return false;
  3810.                 }
  3811.             return false;
  3812.         }
  3813.         
  3814.         function dropIt() {
  3815.                 whichIt = null;
  3816.             if(NS) window.releaseEvents (Event.MOUSEMOVE);
  3817.             return true;
  3818.         }
  3819.  
  3820.         
  3821.         if(NS) {
  3822.                 window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
  3823.                 window.onmousedown = grabIt;
  3824.                 window.onmousemove = moveIt;
  3825.                 window.onmouseup = dropIt;
  3826.         }
  3827.         if(IE) {
  3828.                 document.onmousedown = grabIt;
  3829.                 document.onmousemove = moveIt;
  3830.                 document.onmouseup = dropIt;
  3831.         }
  3832.         
  3833.         
  3834.         if(NS || IE) action = window.setInterval("heartBeat()",1);
  3835.         
  3836.  
  3837. </script>
  3838.  
  3839. <!-- End OF Slide Menu DHTML -->
  3840.  
  3841. __70
  3842. Slideout
  3843. <!-- START OF Slide Out DHTML -->
  3844.  
  3845. <!-- SUMMARY BRIEFS
  3846.  
  3847.     This DHTML script is an entire webpage by itself.  Open it
  3848.     up into a blank webpage and try it out.  You can then add
  3849.     your content around it.  Basically, you can have 5 different
  3850.     "layers" which switch when the user clicks on the appropriate
  3851.     links.  You can adjust the links, colors, and text below.
  3852.  
  3853.      IMPORTANT
  3854.  
  3855.     This example has an image.  It is found in the CoffeeCup
  3856.     Software folder on your hard drive.
  3857. -->
  3858.  
  3859.  
  3860. <SCRIPT LANGUAGE="JavaScript">
  3861. <!--
  3862.  
  3863.  
  3864.  
  3865. n = (document.layers) ? 1:0
  3866. ie = (document.all) ? 1:0
  3867.  
  3868. function init() {
  3869.     slideoutActive = 0
  3870.     if (n) {
  3871.         slideout1 = document.slideoutInterface.document.slideoutContent.document.slideoutContent1
  3872.         slideout2 = document.slideoutInterface.document.slideoutContent.document.slideoutContent2
  3873.         slideout3 = document.slideoutInterface.document.slideoutContent.document.slideoutContent3
  3874.         slideout4 = document.slideoutInterface.document.slideoutContent.document.slideoutContent4
  3875.                 slideout5 = document.slideoutInterface.document.slideoutContent.document.slideoutContent5
  3876.     }
  3877.  
  3878.     if (ie) {
  3879.         slideout1 = slideoutContent1.style
  3880.         slideout2 = slideoutContent2.style
  3881.         slideout3 = slideoutContent3.style
  3882.         slideout4 = slideoutContent4.style
  3883.                 slideout5 = slideoutContent5.style
  3884.     }
  3885.     slideoutShown = slideout1        
  3886.     slideoutShown.xpos = 0
  3887.     slideoutNew = "none"            
  3888.     slideoutNew.xpos = -285
  3889. }
  3890.  
  3891.  
  3892. function slideout(which) {
  3893.     if (!slideoutActive && slideoutShown != which) {
  3894.         slideoutActive = 1  
  3895.         slideoutNew = which
  3896.         slideoutNew.xpos = -285
  3897.         slideoutLeft()
  3898.     }
  3899. }
  3900.  
  3901.  
  3902. function slideoutLeft() {
  3903.     if (slideoutShown.xpos > -285) {
  3904.         slideoutShown.xpos -= 15
  3905.         slideoutShown.left = slideoutShown.xpos
  3906.         setTimeout("slideoutLeft()",30)
  3907.     }
  3908.     else {
  3909.         hide(slideoutShown)
  3910.         show(slideoutNew)
  3911.         setTimeout("slideoutRight()",50)
  3912.     }
  3913. }
  3914.  
  3915.  
  3916. function slideoutRight() {
  3917.     if (slideoutNew.xpos < 0) {
  3918.         slideoutNew.xpos += 15
  3919.         slideoutNew.left = slideoutNew.xpos
  3920.         setTimeout("slideoutRight()",30)
  3921.     }
  3922.     else {
  3923.         slideoutShown = slideoutNew
  3924.         slideoutActive = 0  // stops the sequence
  3925.     }
  3926. }
  3927.  
  3928.  
  3929. function show(showobj) {
  3930.     if (n) showobj.visibility = "show"
  3931.     if (ie) showobj.visibility = "visible"
  3932. }
  3933. function hide(hideobj) {
  3934.     if (n) hideobj.visibility = "hide"
  3935.     if (ie) hideobj.visibility = "hidden"
  3936. }
  3937.  
  3938. //-->
  3939. </SCRIPT>
  3940. <STYLE TYPE="text/css">
  3941. <!--
  3942. A {color:#000000; font-family:'Arial'; font-weight:bold; font-size:10pt; text-decoration:none; line-height:20pt;}
  3943. STRONG {font-family:'Arial'; font-size:15pt; font-weight:bold; line-height:25pt;}
  3944. P {font-family:'Arial'; font-size:10pt; line-height:13pt;}
  3945. TD {font-family:'Arial'; font-size:10pt; line-height:13pt;}
  3946.  
  3947. #slideoutInterface {position:absolute; left:50; top:50; width:400; height:250; clip:rect(0,400,250,0); background-color:#000000; layer-background-color:#000000; visibility:visible;}
  3948. #slideoutSidebar1 {position:absolute; left:5; top:5; width:100; height:30; clip:rect(0,100,30,0); background-color:#9797FF; layer-background-color:#9797FF;}
  3949. #slideoutSidebar2 {position:absolute; left:5; top:40; width:100; height:30; clip:rect(0,100,30,0); background-color:#FFFF00; layer-background-color:#FFFF00;}
  3950. #slideoutSidebar3 {position:absolute; left:5; top:75; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF80C0; layer-background-color:#FF80C0;}
  3951. #slideoutSidebar4 {position:absolute; left:5; top:110; width:100; height:30; clip:rect(0,100,30,0); background-color:#00FF80; layer-background-color:#00FF80;}
  3952. #slideoutSidebar5 {position:absolute; left:5; top:145; width:100; height:30; clip:rect(0,100,30,0); background-color:#FF5353; layer-background-color:#FF5353;}
  3953.  
  3954. #slideoutContent {position:absolute; left:110; top:5; width:285; height:240; clip:rect(0,285,240,0); background-color:#000000; layer-background-color:#000000;}
  3955. #slideoutContent1 {position:absolute; left:0; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:visible;}
  3956. #slideoutContent2 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
  3957. #slideoutContent3 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
  3958. #slideoutContent4 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
  3959. #slideoutContent5 {position:absolute; left:-285; top:0; width:285; height:240; clip:rect(0,285,240,0); background-color:#DEDEDE; layer-background-color:#DEDEDE; visibility:hidden;}
  3960.  
  3961. //-->
  3962. </STYLE>
  3963. </HEAD>
  3964.  
  3965. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" onLoad="init()">
  3966.  
  3967. <DIV ID="slideoutInterface">
  3968.  
  3969. <DIV ID="slideoutSidebar1"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout1)">Contact Us</A></P></DIV>
  3970. <DIV ID="slideoutSidebar2"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout2)">Help</A></P></DIV>
  3971. <DIV ID="slideoutSidebar3"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout3)">Services</A></P></DIV>
  3972. <DIV ID="slideoutSidebar4"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout4)">Products</A></P></DIV>
  3973. <DIV ID="slideoutSidebar5"><P ALIGN=CENTER><A HREF="javascript:slideout(slideout5)">Order</A></P></DIV>
  3974.  
  3975. <DIV ID="slideoutContent">
  3976.  
  3977. <DIV ID="slideoutContent1">
  3978. <P ALIGN="CENTER"><STRONG>Contact Us</STRONG>
  3979. <P>
  3980. <TABLE BORDER=0 WIDTH=275><TD>
  3981. You can add <A HREF="http://www.coffeecup.com"><FONT COLOR=BLUE>Links</FONT></A>.
  3982. <P>
  3983. Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
  3984. <P>
  3985. Or just use text to explain what you have or what you are doing.
  3986. </TD></TABLE>
  3987. </P>
  3988. </DIV>
  3989.  
  3990. <DIV ID="slideoutContent2">
  3991. <P ALIGN="CENTER"><STRONG>Help</STRONG>
  3992. <P>
  3993. <TABLE BORDER=0 WIDTH=275><TD>
  3994. You can add <A HREF="http://www.coffeecup.com"><FONT COLOR=BLUE>Links</FONT></A>.
  3995. <P>
  3996. Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
  3997. <P>
  3998. Or just use text to explain what you have or what you are doing.
  3999.  
  4000. </TD></TABLE>
  4001. </P>
  4002. </DIV>
  4003.  
  4004. <DIV ID="slideoutContent3">
  4005. <P ALIGN="CENTER"><STRONG>Services</STRONG>
  4006. <P>
  4007. <TABLE BORDER=0 WIDTH=275><TD>
  4008. You can add <A HREF="http://www.coffeecup.com"><FONT COLOR=BLUE>Links</FONT></A>.
  4009. <P>
  4010. Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
  4011. <P>
  4012. Or just use text to explain what you have or what you are doing.
  4013.  
  4014. </TD></TABLE>
  4015. </P>
  4016. </DIV>
  4017.  
  4018. <DIV ID="slideoutContent4">
  4019. <P ALIGN="CENTER"><STRONG>Products</STRONG>
  4020. <P>
  4021. <TABLE BORDER=0 WIDTH=275><TD>
  4022. You can add <A HREF="http://www.coffeecup.com"><FONT COLOR=BLUE>Links</FONT></A>.
  4023. <P>
  4024. Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
  4025. <P>
  4026. Or just use text to explain what you have or what you are doing.
  4027.  
  4028. </TD></TABLE>
  4029. </P>
  4030. </DIV>
  4031.  
  4032.  
  4033. <DIV ID="slideoutContent5">
  4034. <P ALIGN="CENTER"><STRONG>Order</STRONG>
  4035. <P>
  4036. <TABLE BORDER=0 WIDTH=275><TD>
  4037. You can add <A HREF="http://www.coffeecup.com"><FONT COLOR=BLUE>Links</FONT></A>.
  4038. <P>
  4039. Or images: <IMG SRC="smile.gif" BORDER=0 HEIGHT=11 WIDTH=11>
  4040. <P>
  4041. Or just use text to explain what you have or what you are doing.
  4042.  
  4043. </TD></TABLE>
  4044. </P>
  4045. </DIV>
  4046.  
  4047. </DIV>
  4048.  
  4049. </BODY>
  4050. </HTML>
  4051.  
  4052. <!-- END OF Slide Out DHTML -->
  4053.  
  4054. __71
  4055. Watemark
  4056. <!-- Start of Watermark DHTML 
  4057.  
  4058.     SUMMARY BRIEFS
  4059.  
  4060.     Put this entire DHTML script below your last line of 
  4061.     code on your webpage.  Usually this will be under the
  4062.     </HTML> tag.
  4063.  
  4064.     Look for this in the JavaScript to adjust to your 
  4065.     image's HEIGHT and WIDTH:
  4066.  
  4067.     var IMGW= 100;
  4068.     var IMGH= 89;
  4069.  
  4070.     Then look for this in the <DIV> tag to adjust to your 
  4071.     URL and IMAGE source including the HEIGHT and WIDTH.    
  4072.  
  4073.     IMPORTANT
  4074.  
  4075.     The image we used 'watermark.gif' can be found in the 
  4076.     CoffeeCup Software folder.  
  4077.  
  4078. -->
  4079.  
  4080. <script language="JavaScript">
  4081.  
  4082. var IW= 0;
  4083. var IH= 0;
  4084. var PX= 0;
  4085. var PY= 0;
  4086. var ZIN= 0;
  4087. var us= null;
  4088. var IMGW= 100;
  4089. var IMGH= 89;
  4090. var LSAFETY= 20;
  4091. var TSAFETY= 17;
  4092. function branding() {
  4093.  oldIW= IW;
  4094.  oldIH= IH;
  4095.  oldPX= PX;
  4096.  oldPY= PY;
  4097.  if (navigator.appName == 'Netscape') {
  4098.   if ((window.innerHeight != oldIH)||(window.innerWidth != oldIW)||(window.pageXOffset != oldPX)||(window.pageYOffset != oldPY))
  4099.     {
  4100.     if (us == null)
  4101.       {
  4102.       for (i=0; i<document.layers.length; i++)
  4103.         {
  4104.         us= document.layers[i];
  4105.         if (us.id == "Valley")
  4106.           break;
  4107.         }
  4108.       }
  4109.     if (us != null)
  4110.       {
  4111.       us.visibility= "hide";
  4112.       IH= window.innerHeight;
  4113.       IW= window.innerWidth;
  4114.       PX= window.pageXOffset;
  4115.       PY= window.pageYOffset;
  4116.  
  4117.  
  4118.       (IH > IMGH) ? us.top= (IH+PY-(IMGH+TSAFETY)) : us.top= 0;
  4119.       (IW > IMGW) ? us.left= (IW+PX-(IMGW+LSAFETY)) : us.left= 0;
  4120.  
  4121. //alert('document.layers.length: ' + document.layers.length);
  4122.       for (i=0; i<document.layers.length; i++)
  4123.         {
  4124.         templay= document.layers[i];
  4125. //    alert('document.layers[' + i + '].id: ' + document.layers[i].id);
  4126.         if (templay.zIndex > ZIN)
  4127.           ZIN= (templay.zIndex + 1);
  4128.         }
  4129.       us.zIndex= ZIN;
  4130.       us.visibility= "show";
  4131.       }
  4132.     }
  4133.  }
  4134.  else{
  4135.   if (navigator.appVersion.indexOf("Mac") == -1)
  4136.     {
  4137.     if ((document.body.clientHeight != oldIH)||(document.body.clientWidth != oldIW)||(document.body.scrollLeft != oldPX)||(document.body.scrollTop != oldPY))      {
  4138.       alldivs= document.all.tags("DIV");
  4139.       if (us == null){ 
  4140.         for (i=0; i<alldivs.length; i++)
  4141.           {
  4142.           us= alldivs(i);
  4143.           if (us.id == "Valley")
  4144.             break;
  4145.           }
  4146.       }
  4147.       if (us != null){
  4148.         us.style.display= "none";
  4149.         IH= document.body.clientHeight;
  4150.         IW= document.body.clientWidth;
  4151.         PX= document.body.scrollLeft;
  4152.         PY= document.body.scrollTop;
  4153.         us.style.top= (IH+PY-(IMGH+TSAFETY)+12);
  4154.         us.style.left=(IW+PX-(IMGW+LSAFETY)+15);
  4155.         for (i=0; i<alldivs.length; i++){
  4156.           templay= alldivs(i);
  4157.           if (templay.style.zIndex > ZIN)
  4158.             us.style.zindex= (templay.style.zIndex + 1);
  4159.         }
  4160.         us.style.display= "";
  4161.       }
  4162.   }
  4163.  }
  4164.  }
  4165. }
  4166. if ((document.all) || (document.layers)){
  4167.  setInterval("branding()",100);
  4168. }
  4169. </SCRIPT>
  4170. <DIV CLASS="Watermark" ID="Watermark" STYLE="position:absolute;top:1;visibility:hide;" ALIGN="right">
  4171. <A HREF="http://www.coffeecup.com"><IMG SRC="watermark.gif" ALT="CoffeeCup Software" WIDTH=100 HEIGHT=89 BORDER=0></A>
  4172. </DIV>
  4173.  
  4174. <!-- End of Watermark DHTML -->
  4175.  
  4176. __72
  4177. Zoom Message
  4178. <!-- START OF Zoom Message DHTML -->
  4179.  
  4180. <!-- SUMMARY BRIEFS
  4181.     This example shows how you can create a webpage
  4182.     that displays lines of text that appear to be 
  4183.     flying out of the webpage.  Our example has an image.
  4184.  
  4185.      IMPORTANT
  4186.     The image used in this example can be found in the 
  4187.     CoffeeCup Software folder.  You do not need an image
  4188.     for it to work.
  4189. -->
  4190.  
  4191.  
  4192. <!-- Style Sheet created with the CoffeeCup StyleSheet Maker++ -->
  4193. <!-- http://www.coffeecup.com -->
  4194. <style type="text/css">
  4195. body
  4196.     {
  4197.     background-color:#FFFFFF; 
  4198.     font-family: Arial; 
  4199.     font-size:10pt; 
  4200.     }
  4201. </style>
  4202. <script>
  4203. //<!--Change this text-->
  4204.     text=new Array('www','coffeecup','com','CoffeeCup Software')
  4205.  
  4206. //<!--This is the number of words in your message-->
  4207.     var numText=4
  4208.  
  4209. //<!--These are the colors the last word will fade to.  The first color is the main color.-->
  4210.     color=new Array('#000000','#2F2F2F','#4F4F4F','#7F7F7F','#408080')
  4211.  
  4212. //<!--This is the total number of colors from above.-->
  4213.     var numColors=5
  4214.  
  4215. //<!--This is the size you want the zoom to end at.-->
  4216.     var endSize=70
  4217.  
  4218. //<!--This is the speed you want it to zoom in.-->
  4219.     var Zspeed=30
  4220.  
  4221. //<!--This is the speed the colors will fade.-->
  4222.     var Cspeed=200
  4223.  
  4224. //<!--This is the font of the fade in message.-->
  4225.     var font='Arial Black'
  4226.  
  4227. //<!--This will allow you to have the message stay or go.  True will make it go.
  4228. //      False will make it stay.-->
  4229.     var hide=false
  4230.  
  4231. var size=10
  4232. var gonum=0
  4233. var ie, n;
  4234. if (document.all) {
  4235.         n=0
  4236.         ie=1
  4237.         zoomText='document.all.zoom.innerText=text[num]'
  4238.         zoomSize='document.all.zoom.style.fontSize=size'
  4239.         closeIt=""
  4240.         fadeColor="document.all.zoom.style.color=color[num]"
  4241.     }
  4242. if (document.layers) {
  4243.         n=1;ie=0
  4244.         zoomText=""
  4245.         zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"
  4246.         closeIt="document.zoom.document.close()"
  4247.         fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"
  4248.     }
  4249. function zoom(num,fn){
  4250.     if (size<endSize){
  4251.         eval(zoomText)
  4252.         eval(zoomSize)
  4253.         eval(closeIt)
  4254.            size+=5;
  4255.         setTimeout("zoom("+num+",'"+fn+"')",Zspeed)
  4256.     }else{
  4257.          eval(fn);
  4258.     }
  4259. }
  4260. function fadeIt(num){
  4261.     if (num<numColors){
  4262.         eval(fadeColor)
  4263.         eval(closeIt)
  4264.            num+=1;
  4265.         setTimeout("fadeIt("+num+")",Cspeed)
  4266.     }else{
  4267.         hideIt()
  4268.     }
  4269. }
  4270. function hideIt(){
  4271.     if(hide){
  4272.         if(ie)document.all.zoom.style.visibility="hidden"
  4273.         if(n)document.layers.zoom.visibility="hidden"
  4274.     }
  4275. }
  4276. function init(){
  4277.     if(ie){
  4278.         document.all.zoom.style.color=color[0]
  4279.         document.all.zoom.style.fontFamily=font
  4280.     }
  4281.     if(ie || n) go(0)    
  4282. }
  4283. function go(num){
  4284.     gonum+=1
  4285.     size=10
  4286.     if(num<numText){
  4287.         zoom(num,'go('+gonum+')')
  4288.     }else{
  4289.         fadeIt(0)
  4290.     }
  4291. }
  4292. </script>
  4293. </head>
  4294. <body onload="init()" bgcolor="FFFFFF">
  4295. <CENTER><IMG SRC="http://www.coffeecup.com/whitestrand.jpg" WIDTH="261" HEIGHT="229"></CENTER><P>
  4296. <div id="zoom" align="center" style="position:absolute; top:150">
  4297. </DIV>
  4298.  
  4299. <!-- END OF Zoom Message DHTML -->
  4300.  
  4301.